This code is broken since Phaser 3.50 and we are facing weird issues with MacOS memory leaks and crashes. Removing this code will remove one potential suspect.