Board.KolibriOS.org

Official KolibriOS board
It is currently Wed Nov 20, 2019 8:42 pm

All times are UTC+03:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
 Post subject: scrsaver -- screen saver
PostPosted: Tue Mar 12, 2019 1:03 am 
Offline
Mentor
User avatar

Joined: Mon Oct 19, 2009 10:58 am
Posts: 435
Hi folks,

We already have three topics on screen savers, here is one more.

I explained details in the commit message:
dunkaist wrote:
Add scrsaver: new screen saver program.

Our default screen saver, ss, requires animations to run as its threads.
Therefore you can't set your favorite demo app as screen saver without
embedding it into ss. Vice versa, you can't run embedded animations as
standalone demos. Moreover, ss is a multi-thread app with configuration
window invoked by clicking both mouse buttons at the top right screen
corner (really?).

Scrsaver is a tiny single-thread program, configured via plain text
file, /sys/settings/system.ini. It has no window and runs a separate
executable as screen saver. This is done via primitive protocol:
* Config file specifies program to run;
* '@ss' parameter is passed to the program;
* program launches '/sys/@ss' at exit if '@ss' param is passed.

See /programs/demos/spiral for working example.

I also included fix for screen saver by Nasarus, which was lost between r1745 and r1747.
Any objections to make it default?


Top
   
PostPosted: Wed May 15, 2019 11:41 am 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5066
Hello,

This topic was in browser bookmarks for a long time because I wanted to test it.
Now I have finally checked and it works well. Great idea.

But for me Spiral demo is a bit too colored and may be annoying. Maybe better to rebuild old @ss into a demo and use it?

Also I can write a configuration UI for @ss.

_________________
Через тернии к звездам


Top
   
PostPosted: Wed May 15, 2019 8:41 pm 
Offline
Mentor
User avatar

Joined: Mon Oct 19, 2009 10:58 am
Posts: 435
Leency wrote:
This topic was in browser bookmarks for a long time because I wanted to test it.
Now I have finally checked and it works well. Great idea.

Thank you, I have many pinned tabs for exactly same reason too.

Leency wrote:
But for me Spiral demo is a bit too colored and may be annoying. Maybe better to rebuild old @ss into a demo and use it?

As I described in the commit message, it isn't straightforward with @ss to make a standalone demo into a screensaver and vice versa. It shouldn't be too hard to extract ASSM screensaver (or LINES?) from @ss if we decide that there is no better screen saver candidate among existing demos. Such demo shouldn't burn the CPU and eat memory of course.

Leency wrote:
Also I can write a configuration UI for @ss.

Do you prefer a separate application or another tab in existing configurator?


Top
   
PostPosted: Thu May 16, 2019 12:21 am 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5066
dunkaist wrote:
Do you prefer a separate application or another tab in existing configurator?
What configurator do you mean? I can add a tab in Appearance app.
SYSPANE -> APPEARANCE (ISO must be attached)

_________________
Через тернии к звездам


Top
   
PostPosted: Thu May 16, 2019 2:19 am 
Offline
Mentor
User avatar

Joined: Mon Oct 19, 2009 10:58 am
Posts: 435
I meant Appearance, right. I didn't know it's ISO only.

btw, Appearance crashes after selecting 'bat' skin.


Top
   
PostPosted: Mon May 27, 2019 8:19 pm 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5066
dunkaist wrote:
btw, Appearance crashes after selecting 'bat' skin.
Already fixed.

_________________
Через тернии к звездам


Top
   
PostPosted: Mon Jun 03, 2019 3:13 pm 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5066
Screensaver starts on K6-2/500AFX: draws an image and then crashes with the notice "Unsupported instruction."

_________________
Через тернии к звездам


Top
   
PostPosted: Tue Jun 04, 2019 4:18 am 
Offline
Mentor
User avatar

Joined: Mon Oct 19, 2009 10:58 am
Posts: 435
Fixed in r7665. FCOMIP instruction is too new for K6-2/500AFX and disassembler in our debugger.

Another task for those who doesn't know where to start: update mtdbg to disassemble fcomip instruction properly.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 posts ] 

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited