PocketMatrix forums

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

symbian 6.1 timer issue

ten foot ninja · 13 Nov 2005, 22:18 UTC
i would like to be able to control movement in my cross platform game using the difference in time between a render and the previous render ( targetFPS / realFPS )

symbian timers seem to be unable to work for me here as there is rarely an iteration where i actually have a difference in time between renders. In the gapidraw docs, it mentions this limitation and explains why symbian calls ProcessNextFrame() as often as it can, and that you should base animations and such on time, not frames passed.

this seems to me to be a chicken and the egg problem, gapidraw doesn't use symbian timers cause they are unreliably inaccurate, thus, they don't work for me either.

the docs say there are threads pertaining to this here, but i haven't found any. How do other people handle rendering/animation on symbian? should i simply adjust my move_by values to reflect the higher fps i get on symbian?
should i simply adjust my move_by values to reflect the higher fps i get on symbian?


This is actually how you should do it on all platforms, since you are not guaranteed that the FPS you set as target will be reached on all devices.. You should always use the actual FPS on the device to adjust your move_by values.

//Johan