Okay, starting a scene takes some time to execute all the Awake()
and Start()
functions. When I start a scene I see that the Timeline makes a sharp jump 170 frames forward, after which it plays normally.
This “jump” can be bypassed if I immediately pause the editor when I start the scene. I can also wait one frame via script and then start playing the timeline, but then flickering will be visible because the timeline has a smooth transition from a black screen.
According to the Timeline documentation, I can blame the clock that the audio engine uses. If I change the update method to “Game Time”, then the problem with skipping frames is fixed.
But what now? Should I now expect that there will be occasional out of sync between the audio and things happening on scene?
Has anyone else encountered this problem? Have there been any issues with the game clock?