From 42b8a1471c2b9ae5ffbc1b6ef0d96d3d23861281 Mon Sep 17 00:00:00 2001 From: Tanish Manku Date: Thu, 19 Dec 2024 19:41:36 -0800 Subject: [PATCH] Timeline: We don't need all the frames (might change) --- app/pages/PageEnigma/Editor/timeline.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/pages/PageEnigma/Editor/timeline.ts b/app/pages/PageEnigma/Editor/timeline.ts index d16fe77dcf..733dca05b2 100644 --- a/app/pages/PageEnigma/Editor/timeline.ts +++ b/app/pages/PageEnigma/Editor/timeline.ts @@ -771,12 +771,7 @@ export class TimeLine { //if (this.is_playing === false) return; // start and stop this.timeline_limit = this.getEndPoint(); if (this.is_playing) { - // When rendering we want to increase it by 1 but when in playback we want it dynamic based on deltatime. - if (isRendering) { - this.current_time += 1; - } else { - this.current_time += delta_time * this.editorEngine.cap_fps; - } + this.current_time += delta_time * 1000; this.pushEvent(fromEngineActions.UPDATE_TIME, { currentTime: this.current_time, });