fps rate problem in DX 7
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
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 !
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
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
If you would like to get below 100fps, try limiting how many times per second you render the frame.
This will limit the fps to 100 (1000 / 100 = 10 )
currentTime = timeGetTime(); if( currentTime - lastRendered > 10 ){ render(); lastRendered = currentTime;}
This will limit the fps to 100 (1000 / 100 = 10 )
If you want more fps then try this for your flip call
lpddsprimary->Flip(NULL,DDFLIP_WAIT | DDFLIP_NOVSYNC);
That should speed it up.
lpddsprimary->Flip(NULL,DDFLIP_WAIT | DDFLIP_NOVSYNC);
That should speed it up.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement