alexgibbs
April 5th, 2005, 03:36 PM
I wrote a non-DirectX program that runs with two DirectX 9 games (App1 or App2). My MFC program has a dialog with a static control that updates twice a second. App1 runs smoothly with my program but App2 stutters when my program updates its control. My program uses 1% of the CPU when App1 is running but 30% of the CPU when App2 is running. My program is doing the same thing, so what could be different about App2 that causes this problem?
The same thing happens if I run the Windows Task Manager instead of my program. The CPU usage of Task Manager goes up with App2 and App2 stutters. This doesn't happen with App1.
This problem occurs whether my dialog is topmost or not. It also occurs whether my dialog clips App2 or is off to the side. It occurs whether I update a static control or BitBlt a bitmap. The problem does NOT occur when I stop my dialog from updating. It does not occur when my dialog is minimized or covered up.
App2 does not like other windows updating. If I knew why then maybe I could figure out how to work around it. I'm running Windows XP Pro and DirectX 9.0c. Thanks in advance for suggestions as to the cause or even solutions!
The same thing happens if I run the Windows Task Manager instead of my program. The CPU usage of Task Manager goes up with App2 and App2 stutters. This doesn't happen with App1.
This problem occurs whether my dialog is topmost or not. It also occurs whether my dialog clips App2 or is off to the side. It occurs whether I update a static control or BitBlt a bitmap. The problem does NOT occur when I stop my dialog from updating. It does not occur when my dialog is minimized or covered up.
App2 does not like other windows updating. If I knew why then maybe I could figure out how to work around it. I'm running Windows XP Pro and DirectX 9.0c. Thanks in advance for suggestions as to the cause or even solutions!