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

Manually limiting FPS


Manually limiting FPS

Postby efortier » Feb 10, 2004 @ 6:03pm

User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Postby DillRye » Feb 10, 2004 @ 6:21pm

User avatar
DillRye
pm Insider
 
Posts: 477
Joined: Apr 25, 2002 @ 7:28am
Location: Iowa State University of Eng


Postby simonjacobs » Feb 10, 2004 @ 6:22pm

User avatar
simonjacobs
pm Insider
 
Posts: 311
Joined: Nov 27, 2001 @ 4:51pm
Location: London, UK


Postby Dan East » Feb 10, 2004 @ 6:59pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby wyrd » Feb 10, 2004 @ 7:01pm

wyrd
pm Member
 
Posts: 125
Joined: Jan 2, 2004 @ 10:19pm


Postby mlepage » Feb 10, 2004 @ 7:21pm

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby efortier » Feb 10, 2004 @ 7:30pm

User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Postby xPeterx » Feb 10, 2004 @ 9:29pm

xPeterx
pm Member
 
Posts: 144
Joined: Jul 28, 2003 @ 2:50pm
Location: Germany


Postby efortier » Feb 10, 2004 @ 9:36pm

User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Postby Dan East » Feb 10, 2004 @ 11:22pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby simonjacobs » Feb 10, 2004 @ 11:30pm

User avatar
simonjacobs
pm Insider
 
Posts: 311
Joined: Nov 27, 2001 @ 4:51pm
Location: London, UK


Postby efortier » Feb 11, 2004 @ 3:46am

User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Postby Dan East » Feb 11, 2004 @ 5:27am

That may have to do with the thread granularity of the OS. The OS gives apps processing time in chunks, and that may happen to cause an extra long delay with a specific sleep amount.

Since your app is well behaved and Sleeping when it doesn't need CPU time, you could try increasing the priority of your application to see if that fixes your 32 MS problem.

You might want to verify that there isn't a bug in your code. Just call GetTickCount before and after Sleep to see how many milliseconds the call actually consumed.

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby mlepage » Feb 11, 2004 @ 6:27am

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby sponge » Feb 11, 2004 @ 7:29am

holy internets batman.
User avatar
sponge
Not sponge
 
Posts: 12779
Joined: Jan 13, 2002 @ 8:04am
Location: New Hampshire


Next

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

cron