Sign in to follow this  

A problem about dithering FPS

This topic is 3317 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

I created a Direct3D project recently. But I encountered a problem about dithering FPS. There is the same result when I delete all render objects and remain operation of device clear,beginscene,endscene and present. Then I tried to capture DXSDK sample in PIX, there is the same result. The following is capture of PIX: Frame Elapsed FPS Frame 2 13300032 75.2 Frame 3 14185600 70.5 Frame 4 31220736 32.0 Frame 5 21817536 45.8 Frame 6 12693248 78.8 Frame 7 13320128 75.1 Frame 8 14624192 68.4 Frame 9 31247872 32.0 Frame 10 20739200 48.2 Frame 11 13310720 75.1 Frame 12 13322880 75.1 Frame 13 15079296 66.3 Frame 14 31270784 32.0 Frame 15 20265344 49.3 Frame 16 13318400 75.1 Frame 17 13321472 75.1 Frame 18 31167616 32.1 How can I fix it? Thank you:)

Share this post


Link to post
Share on other sites
How about other processes running in the background? Downloading something... Virus Scanner... Music Playing... Hit Ctrl-Alt-Delelete for the Windows Task Manager and check the memory/CPU utilization. Make sure nothing is interrupting your process.

Besides, if you are trying to run your program at the absolute maximum speed, you can expect relative big peaks. It might be better to focus for a fixed framerate such as 30, 60 or 100, and then check again if you get these peaks.

Greetings,
Rick

Share this post


Link to post
Share on other sites
Thank you Rick:)
I have found out the reason. That is the "PresentationInterval" must be set "D3DPRESENT_DONOTWAIT|*", and then you can get a fixed FPS:)

Share this post


Link to post
Share on other sites
Sign in to follow this