Archived

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

lucid999

Major Windowing Problem

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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
Sleep(10); 
or anything that''ll take up a few milliseconds of time and give other windows a chance to use the processor.

----
AIDS

Share this post


Link to post
Share on other sites