logoalt Hacker News

H3X_K1TT3Nlast Tuesday at 9:41 PM1 replyview on HN

This should work: function scale(multi) { cnv = document.getElementsByTagName('canvas')[0]; cnv.width = 358 * multi; cnv.height = 360 * multi; window.focalLength = 200 * multi; window.init(); } scale(4);


Replies

tantalorlast Wednesday at 2:58 AM

Very nice.

Paired that with cnv.requestFullscreen() for a much better experience.

Then I started noticing the dropped frames every few seconds due to GC pauses.

> Major GC

> Duration 43.52 ms (self 26 μs)

> Collected 53.1 MB

Ouch!