Closed Zireael07 closed 4 years ago
Nothing is redrawn all the time, but some things are redrawn when you move the mouse around the canvas, for the brush preview, or when you scroll/zoom, for the grid as well as the brush preview. These are updated with update_helper_layer
, which avoids updating twice in one animation frame so it can be called from multiple places in the code without too much worry.
So in other words, it's not perfectly efficient. But the canvas state is persistent. It doesn't need to redraw the brush strokes constantly, just new brush strokes.
Let me know if this answered your question or if you want to know more.
Just wondering, is it redrawn if I click around the menus (i.e. interact with other parts of the app)? I tried looking around in the code but couldn't find it, tbh.