Major Windowing Problem
I''m trying to create a D3D window with a spinning triangle. I want the triangle to spin even when the window loses focus. Unfortunately, if another window completely covers the D3D window, the mouse movement is choppy and the mouse freezes every second or so. If a window partially covers the D3D window, everything is ok.
I''ve searched for an appropriate windows message but I''ve been unable to find anything. I''ve sure someone else has seen this before. Can anyone help?
Thanks.
It sounds like your triangle''s window is hogging process time. What function did you use to retreive messages in your program, GetMessage or PeekMessage? If you used PeekMessage, then try adding a line inside the loop like
----
AIDS
Sleep(10);
or anything that''ll take up a few milliseconds of time and give other windows a chance to use the processor. ----
AIDS
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement