Archived

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

DanielD

fps rate problem in DX 7

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
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