Hi,
Yes, you can change the FPS dynamically by changing the maxfps setting from ecd (it can also be changed from OnNextFrame and takes effect immediately):
- Code:
ecd.maincfg->maxfps = 30;
If the maxfps is set to 0, the setting will be ignored and the application will take 100% CPU power. Calling OnNextFrame doesn't take much processing power if you disable the screen update (flip) and return without any action.
To disable flipping set the following flag:
- Code:
ecd.maincfg->flags |= EFL_MANUALFLIP;
This setting requires you to call display->Flip yourself at the end of OnNextFrame().