Jump to content
  • Advertisement

Archived

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

lucid999

Major Windowing Problem

This topic is 5857 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''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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!