Game Timing

Blitz3D Forums/Blitz3D Programming/Game Timing

Gauge(Posted 2004) [#1]
I want to run my game so that it runs six (or maybe ten) frames at a time. I only want it to readcommands,etc every somany frames. Yet still renderworld/animate at a consistant time, any thoughts/code? Thanks


VIP3R(Posted 2004) [#2]
You could use a combination of a timer and a counter.

Set your loop up with a timer at 10fps or whatever, then use a counter to process the other stuff every 2nd or 3rd iteration of the loop. Something like that should do the trick.