3 ms·
What would the optimizations be for a larger canvas? Does it redraw the whole canvas when an update is made* to a single line when there are several other line
by marclave 7y ago
What would the optimizations be for a larger canvas?
Does it redraw the whole canvas when an update is made* to a single line when there are several other lines on the canvas?
*edit for spelling mistakes
- shihn 7y agoIt doesn't redraw the whole canvas. The optimizations are really needed when 'filling' a shape. If you draw a large polygon, it may take a little longer to fill it with bricks. Optimizations can be made by using WebGL instead.