Refactor: Only recreate runtime schedule context if the scene changes
This commit is contained in:
@@ -5191,9 +5191,11 @@ export class RuntimeHost {
|
||||
return;
|
||||
}
|
||||
|
||||
this.runtimeScheduleSyncContext ??= createRuntimeScheduleSyncContext(
|
||||
if (this.runtimeScheduleSyncContext?.runtimeScene !== this.runtimeScene) {
|
||||
this.runtimeScheduleSyncContext = createRuntimeScheduleSyncContext(
|
||||
this.runtimeScene
|
||||
);
|
||||
}
|
||||
|
||||
const syncResult = syncRuntimeSceneScheduleToClock({
|
||||
runtimeScene: this.runtimeScene,
|
||||
|
||||
Reference in New Issue
Block a user