Archived

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

Screensaver Program Loop

This topic is 5111 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

Currently, for Windows apps, my message loop is while (!quitflag) { // Delete one message (take no action upon it) PeekMessage(&msg, hwnd, 0, 0, PM_REMOVE); // Game loop gameloopfunction(); } This is fine for a normal Win32 app but in a screensaver I understand that the message loop is the entry point so how do high speed interactive loops work? (for interactive, read as: directX, fancy graphics, page flipping). while (!quitflag) gameloopfunction(); Would lock out the system. Any ideas? Mark

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
its just a normal program. you just make it close itself if it detects mouse movement or keys or whatever.

Share this post


Link to post
Share on other sites