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
[01 Feb 2010] Layers speed...
[01 Feb 2010] Layers speed...
Simone"Tuxedo"Monsignori, Perugia, ITALY.
- airsoftsoftwair
- Posts: 5834
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
[01 Feb 2010] Re: Layers speed...
Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 01 Feb 2010 22:37:58 +0100
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.
Hmm, tried FreeLayers()?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"...
Generally, it is not advised to switch between layered and non-layered mode. Behaviour in this case is more or less undefined
[01 Feb 2010] Re: Layers speed...
Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 01 Feb 2010 22:02:20 -0000
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?

Thanks!
Simone.
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 tooHmm, tried FreeLayers()?
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?
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 itGenerally, it is not advised to switch between layered and non-layered mode. Behaviour in this case is more or less undefinedScripts should either always run layered or non-layered... if you start mixing these modes, you can end up with trouble
Thanks!
Simone.
Simone"Tuxedo"Monsignori, Perugia, ITALY.
- airsoftsoftwair
- Posts: 5834
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
[05 Feb 2010] Re: Re: Layers speed...
Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 05 Feb 2010 21:22:03 +0100
You might also try Cls().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 tooI stopped trying FreeLayers() because of the Hide/ShwoWindow problem...
Sorry, I still don't understand. Could you explain it in a little more detail?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?
[05 Feb 2010] Re: Layers speed...
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!
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... 
Simone.
Hi!
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..You might also try Cls().
Well... I made a mistakeSorry, I still don't understand. Could you explain it in a little more detail?
Simone.
Simone"Tuxedo"Monsignori, Perugia, ITALY.