[01 Feb 2010] Layers speed...

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
User avatar
Tuxedo
Posts: 355
Joined: Sun Feb 14, 2010 12:41 pm

[01 Feb 2010] Layers speed...

Post by Tuxedo »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 01 Feb 2010 13:26:20 -0000

Hi! I noticed that with Layers activated draw functions was really slower than with layers deactivated... So in my program "LoView" curretnly I dactivate Layers draw some Box() around new pic to clear the back ground teh reactivate the layers... Tha however give me some problems because tha tlayers wasnt rally deleted but was still here in case of program uniconify for example or also window refresh... So... There's a way to erase completely the layers or to speedup the "window clear" with layer activated? Using Undo() wasnt nice because it blank entire screen and wasnt nice to see bank "flashing"...

Tanks all!

Simone
Simone"Tuxedo"Monsignori, Perugia, ITALY.
User avatar
airsoftsoftwair
Posts: 5834
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[01 Feb 2010] Re: Layers speed...

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 01 Feb 2010 22:37:58 +0100
Hi! I noticed that with Layers activated draw functions was really slower than with layers deactivated... So in my program "LoView" curretnly I dactivate Layers draw some Box() around new pic to clear the back ground teh reactivate the layers... Tha however give me some problems because tha tlayers wasnt rally deleted but was still here in case of program uniconify for example or also window refresh... So... There's a way to erase completely the layers or to speedup the "window clear" with layer activated? Using Undo() wasnt nice because it blank entire screen and wasnt nice to see bank "flashing"...
Hmm, tried FreeLayers()?

Generally, it is not advised to switch between layered and non-layered mode. Behaviour in this case is more or less undefined :) Scripts should either always run layered or non-layered... if you start mixing these modes, you can end up with trouble.
User avatar
Tuxedo
Posts: 355
Joined: Sun Feb 14, 2010 12:41 pm

[01 Feb 2010] Re: Layers speed...

Post by Tuxedo »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 01 Feb 2010 22:02:20 -0000
Hmm, tried FreeLayers()?
Ho yes.. now it works... Added FreeLayers() before DisableLayers() in cls routine and now all was nicely erased... The only not so nice thing remained was a bit of not really nice little visual effect when resizing(because of FreeLayers() wasnt immediately called) but noe it rather ok... Also the Iconify problem was gone now since the cls routine clear the "old" layers for tha purpose too :) I stopped trying FreeLayers() because of the Hide/ShwoWindow problem...

I confirm that HideWindow works only when "hide" was called by scrren decalration attribute... Instead the showwindow works for uniconify too... However in that way also in case of a new display was showed it will be called...no? Maybe add a proper event handler for un/iconify?
Generally, it is not advised to switch between layered and non-layered mode. Behaviour in this case is more or less undefined :) Scripts should either always run layered or non-layered... if you start mixing these modes, you can end up with trouble
I know that but really with layer activated was TOO slow printing gfx on screen(about half speed...) Hope that can handle problems like now...Layers was nice because I can add effects on it :)

Thanks!

Simone.
Simone"Tuxedo"Monsignori, Perugia, ITALY.
User avatar
airsoftsoftwair
Posts: 5834
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[05 Feb 2010] Re: Re: Layers speed...

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 05 Feb 2010 21:22:03 +0100
Ho yes.. now it works... Added FreeLayers() before DisableLayers() in cls routine and now all was nicely erased... The only not so nice thing remained was a bit of not really nice little visual effect when resizing(because of FreeLayers() wasnt immediately called) but noe it rather ok... Also the Iconify problem was gone now since the cls routine clear the "old" layers for tha purpose too :) I stopped trying FreeLayers() because of the Hide/ShwoWindow problem...
You might also try Cls().
I confirm that HideWindow works only when "hide" was called by scrren decalration attribute... Instead the showwindow works for uniconify too... However in that way also in case of a new display was showed it will be called...no? Maybe add a proper event handler for un/iconify?
Sorry, I still don't understand. Could you explain it in a little more detail?
User avatar
Tuxedo
Posts: 355
Joined: Sun Feb 14, 2010 12:41 pm

[05 Feb 2010] Re: Layers speed...

Post by Tuxedo »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 05 Feb 2010 22:10:09 -0000

Hi!
You might also try Cls().
mmm...I made a little try but qtm I cant cls the screen in this way without clear the toolbar and status bar too... Maybe I must do some more tryes..
Sorry, I still don't understand. Could you explain it in a little more detail?
Well... I made a mistake :P I wrote the funcion called by HideWindow with "()" instead than without brackets... Now all works as expected... Sorry for stupid mistake...but wasnt so easy for me get way sometime I've to write functions with brackets and some-other with... so maybe I dont see the error... :P

Simone.
Simone"Tuxedo"Monsignori, Perugia, ITALY.
Locked