3 ms·
This should work: function scale(multi) { cnv = document.getElementsByTagName('canvas')[0]; cnv.width = 358 * multi; cnv.height = 360 * multi; window.fo
by H3X_K1TT3N 9mo ago
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);
- tantalor 9mo agoVery 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!