Re:Show HN: Canvas engines performance comparison – PixiJS, ...
by z3t4 on Tuesday May 05, 2020 @05:37PM
(#23085370)
Its nice if you can avoid creating new objects, but in recent optimization I've seen no difference between reusing objects vs immutable objects. Removing unnecessary code is always nice though.
Generally speaking, avoid GC, and avoid setting state that's already set... if you do these two things and use engines that do these two things, it's usually going to be more than fast enough :)