Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
103 user(s) are online (82 user(s) are browsing Forums)

Members: 0
Guests: 103

more...

Support us!

Headlines

 
  Register To Post  

« 1 (2)
Re: Is there way to globaly disable/enable screenblanker engine ?
Home away from home
Home away from home


See User information
@Chris
Imho (i not know roots, just imho), application library way also based only on screenblankerengine ones, as only them are system/os4/real ones. How application way can know if there some 3d party hacky blanker, which not register itself, and have no references to screenblankerengine, but just reacts like screen blanker ?

Imho both ways just the same. Just with application library is more hi-level and you have it all as bonus together with other features of application library, while with commoditie way its a bit oldschool and do pure disable/enable without needs to use application.library, and that all difference. And probably, at some level application way may do the same call to commoditie, just programmer don't do it itself, as application library use do it for him when he do all those "applicationsetattrss blanker true/false"

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Is there way to globaly disable/enable screenblanker engine ?
Amigans Defender
Amigans Defender


See User information
@kas1e

Quote:
How application way can know if there some 3d party hacky blanker, which not register itself, and have no references to screenblankerengine, but just reacts like screen blanker?

The library can't know that, of course. AFAIK Application Library only interacts with the system-provided screenbanker engine. No one stops anybody from writing/using a blanker based on something else but 1) why bother, and 2) you simply run the risk that your custom blanker will disturb applications that don't want to be disturbed. You choose. The message here is: "Install and use whatever you want in your system, but you bear the responsibility. Don't come complaining that someting doesn't work if you chose to follow non-standard ways."

Quote:
Imho both ways just the same. Just with application library is more hi-level and you have it all as bonus together with other features of application library, while with commoditie way its a bit oldschool and do pure disable/enable without needs to use application.library, and that all difference.

There is one slight difference, though. If an app disables the commodity broker and forgets to enable it, the blankers will stay disabled when the app quits. Whereas with a registered application even if you forget to set APPATTR_AllowsBlanker back to TRUE, the unregistration process will remove the no-blank request automatically. (Or at least it should; the library is such a mystery that we're all still learning what it actually does, and how.)

The Rear Window blog

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
Go to top
Re: Is there way to globaly disable/enable screenblanker engine ?
Home away from home
Home away from home


See User information
@Trixie
Quote:

There is one slight difference, though. If an app disables the commodity broker and forgets to enable it, the blankers will stay disabled when the app quits. Whereas with a registered application even if you forget to set APPATTR_AllowsBlanker back to TRUE, the unregistration process will remove the no-blank request automatically. (Or at least it should; the library is such a mystery that we're all still learning what it actually does, and how.)


Yes, that was good surprise i found today when add it to mplayer: in some driver for first tests i forget to enable blankers back on exit, but they auto-enables once i exit. So while i fix it of course, i still got it like "woah, application library is good stuff, do clean things which done from my app , not keep it for whole system while i exit from". So yep, it do it like you says , and imho pretty logical and right to do it like this.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Is there way to globaly disable/enable screenblanker engine ?
Amigans Defender
Amigans Defender


See User information
@kas1e
Quote:
woah, application library is good stuff

And I'm quite sure people will like Application Class too, for it not only provides a more streamlined access to Application Library functionality but also puts all application-level messaging under one roof, as well as bridges the gap between applications and commodities. As certain boring chores will be off-loaded to the class, application development will be easier and faster.

The Rear Window blog

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
Go to top
Re: Is there way to globaly disable/enable screenblanker engine ?
Amigans Defender
Amigans Defender


See User information
@kas1e

Quote:
Imho (i not know roots, just imho), application library way also based only on screenblankerengine ones, as only them are system/os4/real ones. How application way can know if there some 3d party hacky blanker, which not register itself, and have no references to screenblankerengine, but just reacts like screen blanker ?


All screen blankers, provided they register themselves with application.library using the REGAPP_BlankerNotifications tag, will get the messages telling them to disable or re-enable themselves. It is not restricted to just ScreenBlankerEngine, that's just an example of a screen blanker which registers itself properly and reacts to the messages.

Of course if some hacky blanker doesn't bother to register itself, there's nothing you or anybody else can do to stop it interfering.

Go to top
Re: Is there way to globaly disable/enable screenblanker engine ?
Amigans Defender
Amigans Defender


See User information
@trixie

Quote:
AFAIK Application Library only interacts with the system-provided screenbanker engine.


Any app can register itself as a screenblanker and get the enable/disable messages. This is (thankfully) not hard-coded to ScreenBlankerEngine, and making the assumption that ScreenBlankerEngine is what is being used is a bad idea.

Go to top
Re: Is there way to globaly disable/enable screenblanker engine ?
Amigans Defender
Amigans Defender


See User information
@Chris

You are right and I was wrong. I'll put some more info about blankers in the dev wiki when I get some time.

The Rear Window blog

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
Go to top

  Register To Post
« 1 (2)

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project