how to slow down the main loop?
Posted: Wed Jun 25, 2008 11:38 pm
The main loop fo my program is looking something like this:
It's about playing back custom video files.
As I'm running on PAL system and settings, I did expected this loop to be executed in 1/25 seconds since there is a "vsync" on it, but it's running much faster!
How can I prevent my main loop not to be done in less than 1/25 seconds?
Thanks !
Code: Select all
while (1)
{
renderOneFrame();
gotoNextFrame();
/* execute render queue */
gsKit_queue_exec(gsGlobal);
/* vsync and flip buffer */
gsKit_sync_flip(gsGlobal);
}
As I'm running on PAL system and settings, I did expected this loop to be executed in 1/25 seconds since there is a "vsync" on it, but it's running much faster!
How can I prevent my main loop not to be done in less than 1/25 seconds?
Thanks !