You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Phaser.Types.Core.LoaderConfig allows you to choose imageLoadType. If you pick HTMLImageElement instead of the default one it will increase the amount of GPU Cache used multiple times. This issue can easily throttle the performance if you switch between various levels.
The cache will persist in a browser for a few minutes. After a while, it will be reduced to kb, but the game will still be functional without any error. Triggering the garbage collector manually (which can be done in the performance tab inside Inspector) doesn't change a thing.
You can observe this behavior by using Google Chrome Task Manager (ESC + Shift).
Version
Description
Phaser.Types.Core.LoaderConfig allows you to choose imageLoadType. If you pick HTMLImageElement instead of the default one it will increase the amount of GPU Cache used multiple times. This issue can easily throttle the performance if you switch between various levels.
The cache will persist in a browser for a few minutes. After a while, it will be reduced to kb, but the game will still be functional without any error. Triggering the garbage collector manually (which can be done in the performance tab inside Inspector) doesn't change a thing.
You can observe this behavior by using Google Chrome Task Manager (ESC + Shift).
Example Test Code
https://phaser.io/sandbox
Code origin: https://phaser.io/examples/v3.85.0/loader/loader-events/view/add-files-during-load
Uncomment loader inside the config to test this issue
Additional Information
Repro steps:
Result: the subframe should have a few kb of GPU Cache
Result: GPU cache raises to +- 16 mb
The text was updated successfully, but these errors were encountered: