Why set preserveDrawingBuffer as true in example code but keep it as false

preserveDrawingBuffer: false could improve performance by a tiny bit, but as the expense of some potential artifacts that you must handle yourself. See javascript - preserveDrawingBuffer false - is it worth the effort? - Stack Overflow and Scene's auto clear not working for eg.

preserveDrawingBuffer: true is easier to deal with, that’s why we use it in our examples.

2 Likes