From 2cdde78bfb964ffd83469a8f8ba864d8a7ccbb57 Mon Sep 17 00:00:00 2001 From: Tanish Manku Date: Fri, 7 Feb 2025 00:41:52 -0800 Subject: [PATCH] Fix rendering performance issue (double frame request) --- app/pages/PageEnigma/Editor/editor.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/pages/PageEnigma/Editor/editor.ts b/app/pages/PageEnigma/Editor/editor.ts index ea2eceb0c..d685aca0a 100644 --- a/app/pages/PageEnigma/Editor/editor.ts +++ b/app/pages/PageEnigma/Editor/editor.ts @@ -1155,13 +1155,6 @@ class Editor { this.last_scrub = this.timeline.scrubber_frame_position; this.stats.update(); - - setTimeout( - () => { - requestAnimationFrame(this.updateLoop.bind(this)); - }, - 1000 / (this.cap_fps * 2), - ); // Get the most FPS we can out of the renderer. } // Basicly Unity 3D's update loop.