Jump to content
  • Advertisement

Archived

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

DanielD

fps rate problem in DX 7

This topic is 5447 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi I have a problem with my self-written DX 7 DirectDraw engine. No matter, how many bitmaps I blit on the screen, I can''t get above 100 fps. Also if I blit 10000 bitmaps (small 10x10 pixels) I can''t get under 100 fps. Does anyone knows this problem? Thx Daniel

Share this post


Link to post
Share on other sites
Advertisement
if you can''t get above 100 fps, you probably lock the framerate to your screen hz.

if you can''t get below 100 fps you have a nice gfx card?

my $.002 !

Share this post


Link to post
Share on other sites
Hi

That was what I thought, too. But after I setting the screen hz to 80, it were still 100 fps. Also, I tried to set the DDFLIP_DONOTWAIT flag in the Flip routine, but no change.

Daniel

Share this post


Link to post
Share on other sites
If you would like to get below 100fps, try limiting how many times per second you render the frame.


currentTime = timeGetTime();

if( currentTime - lastRendered > 10 )
{
render();
lastRendered = currentTime;
}



This will limit the fps to 100 (1000 / 100 = 10 )


Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!