Jump to content


Infinite Window


21 replies to this topic

#21 Reedbeta

    DevMaster Staff

  • Administrators
  • 5310 posts
  • LocationSanta Clara, CA

Posted 29 September 2011 - 04:21 PM

_NOISEcore said:

When I click away, this works, but when I just minimize it keeps using thesame CPU amount as when activated.

You'll need to trap WM_SIZE as well as WM_ACTIVATE, and check for wParam being SIZE_MINIMIZED.
reedbeta.com - developer blog, OpenGL demos, and other projects

#22 _NOISEcore

    Member

  • Members
  • PipPip
  • 31 posts

Posted 29 September 2011 - 05:17 PM

Reedbeta said:

You'll need to trap WM_SIZE as well as WM_ACTIVATE, and check for wParam being SIZE_MINIMIZED.

This does not seem to do the trick. But I'll look into that later :)

However, I still have the issue that apparently Sleep(0) doesn't do anything (still uses 25%) and so does MsgWaitForMultipleObjects, however, Sleep(1) does reduce it greatly (0 or 1%) but cuts my framerate in half.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users