Update clock synchronization logic in RuntimeHost
This commit is contained in:
@@ -5052,14 +5052,16 @@ export class RuntimeHost {
|
|||||||
uniform.value = this.volumeTime;
|
uniform.value = this.volumeTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.currentClockState !== null && simulationDt > 0) {
|
if (
|
||||||
|
this.sceneReady &&
|
||||||
|
this.currentClockState !== null &&
|
||||||
|
simulationDt > 0
|
||||||
|
) {
|
||||||
this.currentClockState = advanceRuntimeClockState(
|
this.currentClockState = advanceRuntimeClockState(
|
||||||
this.currentClockState,
|
this.currentClockState,
|
||||||
simulationDt
|
simulationDt
|
||||||
);
|
);
|
||||||
if (this.sceneReady) {
|
this.syncRuntimeScheduleToCurrentClock();
|
||||||
this.syncRuntimeScheduleToCurrentClock();
|
|
||||||
}
|
|
||||||
this.applyDayNightLighting();
|
this.applyDayNightLighting();
|
||||||
this.clockPublishAccumulator += simulationDt;
|
this.clockPublishAccumulator += simulationDt;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user