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);
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!
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!