From b5312b86fac03ca72f40b6c61d6eb98b1c962f9d Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Mon, 12 Dec 2022 14:51:05 +0000 Subject: [PATCH] The `SceneManager.processQueue` method will no longer `return` if a new Scene was added, after starting it. This allows any other queued operations to still be run in the same frame, rather than being delayed until the next game frame. Fix #5359 --- src/scene/SceneManager.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/scene/SceneManager.js b/src/scene/SceneManager.js index 33e5d6bf6..446087cba 100644 --- a/src/scene/SceneManager.js +++ b/src/scene/SceneManager.js @@ -301,8 +301,6 @@ var SceneManager = new Class({ // Clear the pending lists this._start.length = 0; this._pending.length = 0; - - return; } for (i = 0; i < this._queue.length; i++)