Hacker News new | ask | show | jobs
by TheCabin 2001 days ago
The website says "ZOOMQUILT 2 An infinitely zooming painting created in 2007" (Version 1 is from 2004) and on both pages it says "A project by Nikolaus Baumgarten". So it doesn't seem to be the case that we compare two eras of web-dev here.
1 comments

Indeed, the original was in Flash, it was only ported to canvas much later.

I can't even notice the load on the system - Chrome's task manager tells me it's using 10% CPU, and I'm running on a 4k monitor.

EDIT: just tested with Firefox on MacOS and it's incredibly choppy and CPU-hungry. the `drawImage` call always goes over budget for RAF, there are a ton of open issues about it: https://bugzilla.mozilla.org/show_bug.cgi?id=1602299

Drawing at half scale gets it back to 60ms with time to spare:

    window_w = w * dpr / 2;
    window_h = h * dpr / 2;
Seems fine on Safari for me.
60fps*