* fix animation speed on >60hz screens * switch to THREE.Clock() * Update webgl_multiple_elements_text.html Co-authored-by: Michael Herzog <[email protected]>
@@ -100,6 +100,8 @@
const scenes = [];
+ const clock = new THREE.Clock();
+
let views, t, canvas, renderer;
window.onload = init;
@@ -275,7 +277,7 @@
} );
- t ++;
+ t += clock.getDelta() * 60;
}