phaser icon indicating copy to clipboard operation
phaser copied to clipboard

3.55.2 vs 3.60.0 android perfomance

Open ddanushkin opened this issue 2 years ago • 2 comments

After using this benchmark, I noticed that the performance of 3.60.0 is lower than 3.55.2, at least on my android)

Benchmark dont support 3.60 out of the box Modify this file const versions = [..., 3.60.0]

I used this query parameters: /?library=Phaser3&version=3.60.0&scene=1&objectCount=20000 /?library=Phaser3&version=3.55.2&scene=1&objectCount=20000

image image image

ddanushkin avatar May 06 '23 19:05 ddanushkin

Is WebGL2 supported on your device? What's the device it is?

ProgrammingLife avatar Jun 13 '23 19:06 ProgrammingLife

Is WebGL2 supported on your device? What's the device it is?

Yes, Xiaomi Mi 9T Pro. Currently we use WebGL2 context with 3.55.2 because it give us better perfomance on iOS. Like so. update: Oh i think it's not WebGL2 itself, it's diffrent contextAttributes

ddanushkin avatar Jun 14 '23 19:06 ddanushkin

We tested this on quite a range of hardware. Here is 3.70 doing 105k sprites on an ancient Samsung Tab:

image

You can force Phaser to use the MobilePipeline by setting defaultPipeline="MobilePipeline" in the game config. You can also disable Post and Pre FX, to cut down on shader creation, and also adjust the batch size and anti-aliasing to tweak performance further. If you've a Phaser code sample that demonstrates the difference, and you've tried the various renderer config options we make available, feel free to post it. As it stands, the vast majority of mobile devices will perform infinitely better in any version past 3.55.

photonstorm avatar Feb 20 '24 17:02 photonstorm