PocketMatrix forums

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

GetTickCount on the PPC

Hey all,

I was wondering if the resolution of the GetTickCount timer function is as bad in Windows CE as it is in Windows 9x/2000/XP (where it is only accurate to 50 ms).

I ask because I want to unchain my game physics from the frame rate so that my game can run at the maximal FPS on any PPC (so new PPCs will run it smoother), but with the speed of gameplay remaining the same. I noticed that most PPC developers don't do this - is it because the timer can't handle it? I read in the docs someplace that it had a resolution of 1 ms, but that sounds like a lie to me. Has anyone had any experience with this?

I don't suppose that the StrongARM processors have super high accuracy performance timers like pentiums do? I couldn't find any SDK docs on that.

Thanks for any input
you can use the performacecounter without problems i think.. according to docs it might not be supported by some devices, but I think all decent devices (ie with 240x320x16bpp screen) support it, so for games it's fine.
ISTR that the StrongARM doesn't have a performance counter system in hardware, but the XScales do.
Dave H · 31 Mar 2003, 19:19 UTC — GetTickCount on the PPC
telamon wrote:
Hey all,

I was wondering if the resolution of the GetTickCount timer function is as bad in Windows CE as it is in Windows 9x/2000/XP (where it is only accurate to 50 ms).


Really? Seems great on Pocket PC to me (accurate to 1ms). I use it all the time instead of timeGetTime
According to Microsoft documentation (forgot the link), the timer resolution is around 2-3 msec...
refractor wrote:
ISTR that the StrongARM doesn't have a performance counter system in hardware, but the XScales do.


I though the StrongARM did have a counter built-in? I am pretty sure I was using a high-performance counter on my Maestro... Maybe it's source wasn't the CPU?
No idea about source of data for performacecounter, but I have used it and it worked fine on IPAQ machine with 206mhz strongarm cpu.