Hi,
I'm trying to use a kind of adaptative framerate with gapidraw, but without success.
I use a GapiDrawApplication, and here is the code I put in the ProcessNextFrame method :
Any idea ???
Thanks
julien
I'm trying to use a kind of adaptative framerate with gapidraw, but without success.
I use a GapiDrawApplication, and here is the code I put in the ProcessNextFrame method :
- Code:
if ((dwFlags & GDAPP_FRAMETIMEOVERFLOW) == GDAPP_FRAMETIMEOVERFLOW)
{
if (TargetFPS > 5)
{
TargetFPS -= 5;
this->m_config.dwTargetFPS = TargetFPS;
}
}else{
TargetFPS = FPS;
this->m_config.dwTargetFPS = TargetFPS;
}
Any idea ???
Thanks
julien