Reply To: Time lag/shift during heavy load

Forums 💬 Slate Sequencer ⚙️ Support Time lag/shift during heavy load Reply To: Time lag/shift during heavy load

#21082
Gavalakis
Keymaster

    Hey,

    The cutscene is updated using deltaTime * the cutscene playbackSpeed. You can check this piece of code in Cutscene.cs and the method name “Internal_UpdateCutscene()”. The realtimeSinceStartup you saw in CutsceneEditor, is only used for the editor and not in game. 🙂

    Using deltaTime really is the correct way of updating time based processes, since Time.time does not take into account the actual frame rate. As such, if there is a heavy load, using deltaTime you will still get to see what happens (even if choppy) and also all other time based processes will stay in sync with one another (since once again using deltaTime is the standard for such processes) 🙂

    Thanks.