When working with layers, at some point when many images overlap, the program or game slows down. Is there any way to avoid this, or is the only option to use RemoveLayers every so often and redraw all the content? The Undo option doesn't really solve the slowdown problem either.
Thank you for the ideas.
Working with Layers
- airsoftsoftwair
- Posts: 6012
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Working with Layers
If you have layers that are completely concealed by other layers you could hide them in order to speed up drawing. Otherwise Hollywood will draw the layers even if they aren't visible at all because the layers engine isn't that optimized. All layers that are not set to hidden will be drawn, even if they're actually fully behind other layers. The reason for this behaviour is that layers was never designed for high-speed drawing. For high-speed drawing, hardware-accelerated double buffers must be used. The idea behind the layers library is maximum flexibility and convenience, not maximum drawing performance.Juan Carlos wrote: ↑Thu Sep 03, 2026 3:32 pm When working with layers, at some point when many images overlap, the program or game slows down. Is there any way to avoid this
- Juan Carlos
- Posts: 990
- Joined: Mon Sep 06, 2010 1:02 pm
Re: Working with Layers
Thank you for the answer, I continue using the trick to RemoveLayers each 10 or 15 times that click on a button as solution, because with double buffers always I found other problems, when you use videos, etc.