Answer the question
In order to leave comments, you need to log in
How to properly render on canvas?
How to correctly render multiple graphic primitives on canvas?
At the moment I have a regular Primitive class that has a draw() method.
Accordingly, there will be a stack of layers with classes. I plan to make an observer to track layer changes. If something has changed, redraw all layers.
At the moment, I see a few things - using requestAnimationFrame to make rendering more responsive.
How are things like this usually done?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question