mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-15 22:32:13 +00:00
Timeline: We don't need all the frames (might change)
This commit is contained in:
1 parent
45b3c04a41
commit
42b8a1471c
1 file changed
+1
-6
@@ -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,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user