Archived

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

Raloth

to use scrnsave.lib or not?

Recommended Posts

Raloth    379
I am writing a little artificial life screensaver. I have a basic thing up and running using scrnsave.lib but I plan on using DirectX for graphics. If I use the scrnsave.lib I have no control over the main loop and I must use timers to do updates which can be slow. They also can''t be easily adjusted to make up for slower frame rates, and if it takes longer to render a frame than the timer delay bad things will happen. Am I better off forgetting about the library and handling all of the messages and things myself?

Share this post


Link to post
Share on other sites
krez    443
it really isn''t hard to write a screensaver, you just have to draw whatever you want in fullscreen, and turn it off when the mouse moves or a key is pressed. oh, and handle 2 or three command-line options, for the settings dialogue and the preview...

Share this post


Link to post
Share on other sites
Merick    122
I also wouldn't recommend scrnsave.lib

I've discovered that how ever scrnsave.lib chooses to implement exiting, it does not call the standard atexit function. Therefore, any singleton objects you might have, will not get their destructor's called. Not really too big of deal if you know, but still annoying.

[edited by - Merick on April 12, 2004 11:56:50 AM]

Share this post


Link to post
Share on other sites