We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70f5568 commit 6406eafCopy full SHA for 6406eaf
src/lib/scene-manager.ts
@@ -60,17 +60,16 @@ export class SceneManager {
60
61
render(containerEl: Element): void {
62
containerEl.appendChild(this.renderer.domElement);
63
- requestAnimationFrame(this.animate.bind(this));
+ this.renderer.setAnimationLoop(this.animate.bind(this));
64
this.spawnSound();
65
}
66
67
/**
68
* Render the current frame.
69
*/
70
private animate(): void {
71
72
-
73
const delta = this.clock.getDelta();
+
74
this.resizeRendererToDisplaySize();
75
this.moveGridsInfinitely(delta);
76
this.moveTitleUntilRest(delta);
0 commit comments