PDA

View Full Version : Can I sync my OGL program with vsync ?



02-13-2001, 11:52 AM
I would like to sync my ogl camera movement with the vsync to keep it at the same tempo on different hardware. Or isnt that the way to go anyone with a better solution.

thanks

shawge
02-13-2001, 12:18 PM
Take a look at glvelocity.gamedev.net in the code section. There's a piece of code that (I think) does what you want.

Moz
02-13-2001, 01:21 PM
You'd better use the high performance counter of the PC to get a time reference for your app (make it time dependant) rather than using the refresh rate as reference.

02-14-2001, 03:04 AM
what is a high performace counter ?

Moz
02-14-2001, 04:53 AM
Make a search on this forum for performance counter.