Earlier quoted context omitted.
I haven’t written a post-mortem but I’ll take a quick stab here, and post a more polished post-mortem on my website later. My demo is Star Traveler, which placed #1 in the 2D Canvas category. The GitHub repository is here: https://github.com/depp/demo-traveler Source code: https://github.com/depp/demo-traveler/blob/trunk/src.js What I like about 1K demos is that you can make them in a relatively short amount of time—…
> Path2D turns out to be a very efficient way to specify a path for a Canvas. It uses an SVG path string to specify the path, which is more compact than using .moveTo() and .lineTo(). Path2D w/ SVG strings is byte-efficient, but is less computationally efficient vs the same Path2D w/ lineTo(), etc.
This particular demo only creates the Path2D objects once, at startup, and then hammers the canvas with a ridiculous amount of overdraw.