PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

palmos timer strategies

Ok I just need to ask one more question and im set, (then ill shut up for a long time, promise)


As the palmos version does not support a timer (building on top of CGapiApplication), does this mean that the game just has to run as fast/slow as the device calls ProcessNextFrame().

Do people have any strategies for palmos to

a) fix the FPS ?

or better

b) give an estimate on time passed for sprite movement?



I had a look around on google and in the forum, but I couldn’t see anything apart from mlepage’s comments.
I think on Palm it tries to run 30fps if it can.

Take a look at the samples. You will see some code in there for showing the FPS and time on Palm. Take a look at that code.

You should definitely go over the Palm and Pocket PC samples to get a better understanding of GapiDraw's abilities and limitations. You should do this even if you aren't programming your game yet.
You can target animations using TimGetTicks() * 1000 / SysTickPerSecond() (I think... im pullling this off the top of my head) to get the milliseconds. Then using that you can determine if you move to the next sequence or move a sprite :) That is for PalmOS.
Hey thanks mlepage, mitch,

Look im sorry if ive pissed people of with my constant noobie questions. I was trying to tap into the vast knowledge that this forum represents without putting in the ground work I guess.


Anyhow good luck with all your projects, its onwards for me :arrow: