phaserjs / phaser-ce

Phaser CE is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
http://phaser.io
MIT License
1.34k stars 491 forks source link

bad performance in webGL version 2.15+ #681

Closed drfrankius closed 3 years ago

drfrankius commented 3 years ago

This is the configuration being used for the renderer.

const config = { width: 640, height: 960, renderer: Phaser.AUTO, transparent: false, enableDebug: true, powerPreference: 'high-performance', };

samme commented 3 years ago

Likely that's the #356 / #644 problem.

drfrankius commented 3 years ago

It seems like that is what was fixed in 2.15 though? that is the version where we started having issues with slowdowns. We do not explicitly set multi-texture batch priorities as well.

samme commented 3 years ago

641 improved performance but broke some multitexture batching.

656 fixed batching but probably reintroduced some performance problems.

Since we don't have a complete fix you might stick to v2.14.0 if that's feasible.

drfrankius commented 3 years ago

Ok, thanks for clarifying and the quick replies. I already forked 2.14.0 to pull in fixes for some ios input issues fixed in newer releases. So for now we are good I guess.