Original Post
I'm sure many of you have seen Nehe's opengl tutorial. One feature of his program is how easy to switch from window mode to full screen mode. However, looking at his code, which use PeekMessage, consume 100% of a single core cpu cycle. Which isn't a good idea either, imo. Just wonder if anyone knows whether there is better way to saving more cpu cycle as well as getting the job done. Thanks.