erichood

erichood

  • NA
  • 9
  • 0

Vertical Sync event

Feb 10 2005 4:06 PM
Is it possible to bind a function to the PC monitor's vertical sync? I've got a program which takes < 1/10 a frame to draw (75hz), and I'd like to relinquish control back to windows during the other 9/10 a frame. However, I haven't found a consistent way of guaranteeing that Windows will call my thread back at the next VSync. I'm actually trying to fix my video refresh at EXACTLY 60hz, which means 15 of every 75 frames would not be updated. Not a problem, those 15, I'd just exit the function. I've yet to find a way to do EXACTLY 60hz. Anybody got any ideas?

Answers (2)