[C++, DX9] Strange performance

Started by
10 comments, last by TomKQT 13 years, 9 months ago
With VSync off you should be expecting high CPU usage. You're basically telling DirectX (and your code) to render as fast as it can... funnily enough, rendering as fast as it can will mean it will make full use of your CPU.
Advertisement
Quote:Original post by fun2code
I think the problem may be here:

dx_PresParams.PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE;

It is very cycle intensive
Try using D3DPRESENT_INTERVAL_ONE instead. I saw my cpu usage drop from 50% to 2% when I made this switch in a project of mine.


That's simply going from VSync off to VSync on. Change in CPU usage in this case is just a side effect.

This topic is closed to new replies.

Advertisement