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

Mind if I ask a basic question about game loops/throttling?


Mind if I ask a basic question about game loops/throttling?

Postby fzammetti » May 23, 2002 @ 6:26am

fzammetti
 


Postby BadBazza » May 23, 2002 @ 12:16pm

Hi Frank,

Good to see you are still around :P

The first thing I would do is replace MainLoopHandler() with a function that does nothing accept check your fps counter. By doing that you can make sure that your game logic is not taking longer than expected in your main loop.

I assume that you FPS counter is not running from the WM_TIMER event as this has proven in the past to be very unreliable.

Other than that, the code looks ok. To test your logic set the +10 to +1000, that way you can check the fps is constant ie 1 fps

I hope this is of some help
BadBazza
Lost....... Assumed Coding!
User avatar
BadBazza
pm Insider
 
Posts: 81
Joined: Sep 21, 2001 @ 6:26am
Location: Blackpool, UK


Postby Guest » May 23, 2002 @ 8:07pm

Guest
 


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