Quote Originally Posted by seiferalmasy
Asphyre timer. Quick question. What exactly is onprocess? And what is "speed" for opposed to maxfps?

If I want agame to run at 100 fps with minimal cpu, what should I set to?

MaxFPS sets the upper bound for rendering speed. Sometimes it is not necessary to render your scene with 100000 FPS so you may drop it to the value assigned to MaxFPS.

Speed is the frequency of OnProcess calling. So if you set up Speed = 100 than it should be called 100 times per second.

If you want to run your game with 100 FPS then set up MaxFPS = 100.

You may do the rendering of your scene in OnProcess event but I would not advice that.

Personaly, I am doing in the OnProcess other not-so-important things. For example, keyboard handling in some static strategy game. 30 times per second is enough and it could save you some FPS if you do the handling in the OnProcess rather than in OnTimer.