FPS performance worse on prod build

Hello,
When on my development machine using development server (vite) i have 144 FPS and no lags

After i create a build with vite build and deploy it i have worse performance as you see on the photo

What can be the difference? Is Vite shit tool for building? What other information can i provide so you can help me?

This is the performance log per frame

That does seem weird. Check the console to see if both are running the same Phaser version.

yes both are running Phaser v3.60.0-beta.17 (WebGL | Web Audio)

okey i found the issue its the obfuscator in the vite config

So my question next is how to protect the source code and have performance?

You should obfuscate only your own code (if you want to), not Phaser. And you could try the “low” preset.