Screensaver

Developed or developing a new product in PureBasic? Tell the world about it.
Prod
User
User
Posts: 14
Joined: Thu Mar 31, 2005 3:47 pm
Location: Denmark

Screensaver

Post by Prod »

4 bent lines wobbling over the screen, glowing on collision. Secondary monitors will (should) go all black.
Tested on XP/7/8, this is x64 only.
Uses some cpu (but no gpu), so is not a real resource-saver, mostly exists to attract girls at work, do not run all night on your servers and stuff.
Designed to run smooth at 60hz, if you have enough cpu and a 120hz monitor then it will probably run double speed, sorry about that, will fix later. :)
This is just an exe, does not have full screensaver functionality. I highly recommend using manual launch of screensavers anyway (sitting idle for 5 minutes will not impress anyone), I use AutoHotkey and press F12 for screensaver.
Enjoy, report bugs and stuff. :)

http://pinkponyproductions.com/file/spliner.zip
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: Screensaver

Post by netmaestro »

is not a real resource-saver, mostly exists to attract girls at work
That's everybody's reason for writing software, how many have you attracted so far? Looks pretty good btw, you should make a proper .scr out of it.
BERESHEIT
Prod
User
User
Posts: 14
Joined: Thu Mar 31, 2005 3:47 pm
Location: Denmark

Re: Screensaver

Post by Prod »

I have to fight them off with a stick. :P
And thanks to your excellent examples, a .scr is definitely an option to look at. :)
dige
Addict
Addict
Posts: 1405
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Re: Screensaver

Post by dige »

@Prod: cool and clean style - I like it! Would you like to share the source code?
"Daddy, I'll run faster, then it is not so far..."
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Screensaver

Post by davido »

Very nice. :)
DE AA EB
Prod
User
User
Posts: 14
Joined: Thu Mar 31, 2005 3:47 pm
Location: Denmark

Re: Screensaver

Post by Prod »

Yo dige. :)
Unfortunately the code is impossible to comprehend, I can only handle it because I have been looking at it regularly for several years. :D
It is just one big chunk of horrible painful math. Virtually everything is done in 128 bit asm (SSE), including line generation, line drawing, and blitting to screen.
Would be much easier just to explain how the basics work, like bending lines, applying antialias, and (actually the hardest part) how to seamlessly combine both ends of a line. :)
dige
Addict
Addict
Posts: 1405
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Re: Screensaver

Post by dige »

Just tried it again on a high res 3200x1800 screen .. looks damn cool! :D
"Daddy, I'll run faster, then it is not so far..."
User avatar
majikeyric
Enthusiast
Enthusiast
Posts: 187
Joined: Mon Oct 21, 2013 5:21 pm
Location: France
Contact:

Re: Screensaver

Post by majikeyric »

Very nice ! :D
Post Reply