Page 1 of 1

Layers and double buffer in same project

Posted: Sun Jun 02, 2024 7:38 pm
by oceanarts
Am I able to use Layers and Doublebuffer approach inside the same project and switch between them?
If so, how exactly? Just use BeginDoubleBuffer() - EndDoubleBuffer() and such?

Searching the PDF docs is a pain. :lol:

Re: Layers and double buffer in same project

Posted: Wed Jun 05, 2024 6:35 pm
by phipslk
you must disable layers to use DoubleBuffer(). But why would you mix these two things?

see: https://www.hollywood-mal.com/docs/html ... ayers.html

Re: Layers and double buffer in same project

Posted: Wed Jun 05, 2024 6:46 pm
by Bugala
You can, and it can sometimes be useful solution even, although, basically if it becomes a good solution, then it Is basically because you already did something wrong before (talking from experience here).

Re: Layers and double buffer in same project

Posted: Wed Jun 05, 2024 7:29 pm
by oceanarts
phipslk wrote: Wed Jun 05, 2024 6:35 pm you must disable layers to use DoubleBuffer(). But why would you mix these two things?

see: https://www.hollywood-mal.com/docs/html ... ayers.html
Well, I read somewhere in the docs that some things might be better suited for a Double Buffer approach while other things may do better with Layers.
I've already written one part using DoubleBuffer as it is more fast paced, and the other main part using layers as it is more of a point and click type thing. I'd rather not attempt to rewrite anything at this point if I don't have to.