Whenever I build my project for WebGL and I open the build, it has about 2 FPM (yes, frames per minute). However this only happens on Windows and is fine on Linux.
I am using the Unity 6 Preview, but it’s fine with an empty project.
How would one even approach to debug this project? Thanks!
1 Like
I’m also facing this issue, the WebGL build runs perfectly fine on Linux and macOS but basically not at all on Windows. I’m getting a solid 60fps on an old ThinkPad with an Intel HD 620 graphics chip running Linux, and basically a zero fps on Windows using a proper dedicated graphics card.
I’m using URP in Unity 2022. I can see that there are GL_INVALID_OPERATION errors in the console in what appears to be some DirectX11 cpp file.
I fixed this by changing the rendering path from Forward+ to Forward.
1 Like
Hmm okay I’ll try that too. I also got it to work by changing all my materials to use an Unlit shader from the Simple Lit shader. Which isn’t really a solution, but more of an indication that it’s something shader specific.
1 Like
Thanks to both of you for coming back to post solutions / findings / results. That’s how we all learn!
Just want to add that sometimes you can learn a bit by studying the spew in the browser’s development console… not always, but sometimes there will be something wrong on startup that can be reasoned about.
Hello, sorry for not including that yesterday, I was in a bit of a hurry.
This was the output when the problem occured:
My final update for now is that on Unity 2022 switching from the Forward+ to the Forward renderer also fixed it in my case.
1 Like