Fixing memory leak when switching scenes
This commit is contained in:
parent
3b5f105daf
commit
189dba2e21
1 changed files with 3 additions and 0 deletions
|
@ -55,6 +55,9 @@ export class Game extends Phaser.Game {
|
|||
// The final event before the step repeats. Your last chance to do anything to the canvas before it all starts again.
|
||||
|
||||
eventEmitter.emit(Events.POST_RENDER, renderer, time, delta);
|
||||
} else {
|
||||
// @ts-ignore
|
||||
this.scene.isProcessing = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue