Archived

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

Performance drop after converting to DX9

This topic is 5316 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 just converted my Direct3D application from version 8.1 to version 9.0. Before conversion, when running at 1024x768 (windowed), I was getting approximately 116 FPS. After converting to DirectX 9.0, my frame rate dropped sharply to 47 FPS. When running full-screen, however, I max out at 85 FPS, which is my monitor''s refresh rate. If I increase resolution to 1600x1200 (full-screen), both D3D8 and D3D9 give me around 45 FPS, so apparently, the performance drop is only affecting windowed mode. I even tried running my program in a window with an empty scene (no object being drawn) and I get similar results (217 FPS for 8.1 and 50 FPS for 9.0). And that''s with an empty scene!!! So my question is: does DirectX 9 have problems with windowed mode? Has something changed that I need to modify in my code in order to get similar performance between D3D8 and D3D9? Thanks for any advice!

Share this post


Link to post
Share on other sites
Yeah, that one hit me too. Took a few hours to figure out that the d3dpp.FullScreen_PresentationInterval got changed to d3dpp.PresentationInterval. Then I decided that maybe that meant it affected windowed mode as well as fullscreen mode.

It turns out, it does

However, between those two events was much hair pulling and swearing


Josh

Share this post


Link to post
Share on other sites
Thanks a lot guys! That did the trick, although I still get between 6 to 10 FPS less than with D3D8, but that''s not as big a deal.

Share this post


Link to post
Share on other sites