fps rate problem in DX 7

Started by
4 comments, last by DanielD 20 years, 6 months ago
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
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 !
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
No, it''s "just" a GF4 TI4200, nothing extra fast

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


Dustin Franklin ( circlesoft :: KBase :: Mystic GD :: ApolloNL )
If you want more fps then try this for your flip call

lpddsprimary->Flip(NULL,DDFLIP_WAIT | DDFLIP_NOVSYNC);

That should speed it up.

This topic is closed to new replies.

Advertisement