Hi all,
I made a game and noticed that i have different fps on Editor comparing to WebGL.
For example on editor i see 24-30 fps and after building the WebGL it comes to 9-10 fps.
Can anyone know how to resolve this problem?
Thanks,
Miki.
Hi all,
I made a game and noticed that i have different fps on Editor comparing to WebGL.
For example on editor i see 24-30 fps and after building the WebGL it comes to 9-10 fps.
Can anyone know how to resolve this problem?
Thanks,
Miki.
WebGL will almost always be slower. The Editor is running directly as a native app with nothing between it and the OS. WebGL requires converting the entire unity engine to JavaScript, running that JS through the browser, and doing the same thing for all of the rendering calls. All of that translation adds a lot more cost. Unity will optimize their WebGL logic and so will the browser companies, but it’ll never be as fast to do something in WebGL as in native OpenGL, just like a WebApp will never be as fast as a natively written one.