Archived

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

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.

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 on other sites
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 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 on other sites
No, it''s "just" a GF4 TI4200, nothing extra fast

Daniel

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 on other sites
If you want more fps then try this for your flip call

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

That should speed it up.

1. 1
2. 2
Rutin
21
3. 3
4. 4
frob
17
5. 5

• 9
• 33
• 13
• 13
• 10
• Forum Statistics

• Total Topics
632582
• Total Posts
3007207

×