This site is no longer active and is available for archival purposes only. Registration and login is disabled.

GetTickCount on the PPC


GetTickCount on the PPC

Postby telamon » Mar 31, 2003 @ 9:07am

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
--------------------------------
Let be be finale of seem, seems to me.
--------------------------------
User avatar
telamon
pm Member
 
Posts: 20
Joined: Mar 30, 2003 @ 10:16pm


Postby MirekCz » Mar 31, 2003 @ 12:39pm

With best regards,
Mirek Czerwinski
User avatar
MirekCz
pm Member
 
Posts: 269
Joined: Sep 18, 2001 @ 6:42pm
Location: Poland,city Poznań


Postby refractor » Mar 31, 2003 @ 1:44pm

User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


GetTickCount on the PPC

Postby Dave H » Mar 31, 2003 @ 8:19pm

Dave H.
Lead Programmer (Repton PPC/7650)
[url=http://www.handango.com/PlatformProductDetail.jsp?productId=43741]
Buy Repton Online here!
[/url]
User avatar
Dave H
pm Member
 
Posts: 164
Joined: Oct 3, 2002 @ 5:01pm


Postby Johan » Apr 17, 2003 @ 12:35am

According to Microsoft documentation (forgot the link), the timer resolution is around 2-3 msec...
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Kzinti » Apr 17, 2003 @ 1:15am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby MirekCz » Apr 17, 2003 @ 9:22am

No idea about source of data for performacecounter, but I have used it and it worked fine on IPAQ machine with 206mhz strongarm cpu.
With best regards,
Mirek Czerwinski
User avatar
MirekCz
pm Member
 
Posts: 269
Joined: Sep 18, 2001 @ 6:42pm
Location: Poland,city Poznań


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum