diff --git a/src/runtime-three/runtime-host.ts b/src/runtime-three/runtime-host.ts index 426fc292..5cf2291c 100644 --- a/src/runtime-three/runtime-host.ts +++ b/src/runtime-three/runtime-host.ts @@ -5052,14 +5052,16 @@ export class RuntimeHost { uniform.value = this.volumeTime; } - if (this.currentClockState !== null && simulationDt > 0) { + if ( + this.sceneReady && + this.currentClockState !== null && + simulationDt > 0 + ) { this.currentClockState = advanceRuntimeClockState( this.currentClockState, simulationDt ); - if (this.sceneReady) { - this.syncRuntimeScheduleToCurrentClock(); - } + this.syncRuntimeScheduleToCurrentClock(); this.applyDayNightLighting(); this.clockPublishAccumulator += simulationDt;