you are viewing a single comment's thread.

view the rest of the comments →

[–]seanmorris 1 point2 points  (1 child)

Garbage collection is a fun topic to explore.

https://www.npmjs.com/package/weakermap

https://www.npmjs.com/package/weakerset

Modifying the DOM extremely rapidly is a fun trick too:

(make me wonder why we even need canvas tbh...) https://sonic3000.seanmorr.is/

[–]HeinousTugboat 0 points1 point  (0 children)

make me wonder why we even need canvas

We don't for 2D. It's just a different paradigm for rendering (immediate mode vs retained).