by Phantom » Jun 22, 2005 @ 10:21pm
The new game is using PocketHAL.
About the Hz: I want to force my game to use two 'vertical blanks', so that it runs at 25-30fps. I'm not worrying about 10% speed difference, I just wanted to make sure there aren't any devices that refresh the screen at 100hz or something.
What I will do is this: If the game spent less than 1/60th second, it will wait until it spent almost 1/30th second, then it will do a Swap( SWAP_VSYNC ). If the game spent more than 1/30th of a second, it will do one iteration without screen update (to catch up). This way, the game will run at 30fps max, or it will frameskip (which isn't a problem with this game).
So far the game is performing very well on a iPaq 1915, which is one of the slowest devices (apart from those devices with weird graphics chips).
- Jacco.
Give me some good data and
I will give you the world