PDA

View Full Version : Screen Saver



Gleeok
08-05-2013, 03:17 AM
I'm mostly posting these here so I don't forget. (And yes it is a critical issue!)

1)Screen Saver will override the GUI (Not so good as it bypasses some code flow)
2)Screen Saver 100% CPU issue.
3)Add "ss_enable=1" to the config file.

Gleeok
09-08-2013, 05:47 PM
All three should be fixed now. Let me know if they are not.

SUCCESSOR
09-08-2013, 06:01 PM
I'm mostly posting these here so I don't forget. (And yes it is a critical issue!)

1)Screen Saver will override the GUI (Not so good as it bypasses some code flow)
2)Screen Saver 100% CPU issue.
3)Add "ss_enable=1" to the config file.We can disable the screensaver?!

Gleeok
09-08-2013, 06:15 PM
You sure can! (Matrix screensaver that is - pressing F9 should still toggle it on/off even if it is disabled otherwise).

SUCCESSOR
09-08-2013, 08:11 PM
You sure can! (Matrix screensaver that is - pressing F9 should still toggle it on/off even if it is disabled otherwise).

Very good to know. That thing has always just caused me problem.

Saffith
09-12-2013, 07:41 PM
You've always been able to disable it. Go to Misc > Screen Saver... and set "Run After" to "Never."

SUCCESSOR
09-13-2013, 12:51 AM
Just wish I'd have known sooner.

Gleeok
09-13-2013, 02:19 AM
You've always been able to disable it. Go to Misc > Screen Saver... and set "Run After" to "Never."

That's obscure...

So what is ss_after supposed to be set to to in the config file to disable it then?

Saffith
09-13-2013, 03:50 PM
14

SUCCESSOR
09-13-2013, 05:32 PM
14

That makes perfect sense.

Gleeok
09-14-2013, 02:27 AM
Oh well, no big deal. I haven't got a crash from the latest revision yet. That's the important part. Moving to quarantined. [edit] or not. :P

Saffith
08-21-2014, 01:21 PM
I wonder if the problems could have something to do with having buttons mapped to Ctrl, Alt, and Shift. Allegro doesn't treat those as keypresses on their own, but ZC has code that specifically checks for them.

Scripts might also be a factor. I don't recall this ever coming up in 2.10, and that may well be why. The input variables interact directly with the internal control arrays. I've found that if I run this script:

global script UnpressA
{
void run()
{
while(true)
{
Link->InputA=false;
Link->PressA=false;
Waitframe();
}
}
}

If A is assigned to Alt, I can press it repeatedly or hold it and it won't stop the screensaver from starting. If it's another button, keypressed() still returns true, so input_idle() behaves as expected. I've seen some other weirdness, but I haven't been able to make it hang.

I'll try having input_idle check key[] rather than ZC's regular controller functions. I'm not sure that'll fix it, but it can't hurt.