Archived

This topic is now archived and is closed to further replies.

Moquan

Frame Rate

Recommended Posts

I''ve capped my work in progress to only display 30 frames per second. For some reason, I get 30 FPS sometimes, but 22 most of the time... what could be causing this? I''m working in Direct-X and I *think* I''m in release mode. This happens when I debug compile and release compile. -Moquan

Share this post


Link to post
Share on other sites
I''m pretty sure it''s not my computer. I''m not displaying all that much. It goes about the same speed with 15 sprites and 100 sprites. Also, it''s a P4 2.8 with a GeForce FX.

-Moquan

Share this post


Link to post
Share on other sites
It''s windowed currently. I set a framerate to be 33 ticks. So when the game loop is processed and it''s been 33 ticks (milliseconds) then it can process the frame. Not sure what a task quantum is.. hmm.. I think my screen is at 60 hz

-Moquan

Share this post


Link to post
Share on other sites
well, yes, I''ve concidered that, actually, but then why would it reach the 30 fps sometimes (A) not vary when I add or take away sprites (b) and run fine on a different computer (just tested).

-Moquan

Share this post


Link to post
Share on other sites
It runs fine on a different computer? You mean it is capped at exactly 30FPS? then what''s it''s your computer that''s not managing enough FPS to reach 30...

otherwise, you have to consider that depending on how much drawing the render routine has to do, depends on where it is looking.. looking into blank space gives you more fps than looking at triangles. Maybe you should use some frustrum culling or BSP if you don;t already...


-----------------------
"Without a sense of humour we couldn''t react to a lot of things"

Share this post


Link to post
Share on other sites