why there is discrepancy between editor fps and webgl fps
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.
Answer by MakeCodeNow · Sep 13, 2015 at 05:00 AM
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.
Your answer
Follow this Question
Related Questions
Animations Bad Scripting | Controller Script Buggy | Collider Problem | Beginner Here! 0 Answers
Instantiating as a child of an object in hierarchy 1 Answer
Help me write a script that decreases the slider everytime a Gameobject touches my game Character 0 Answers
What do I need to do to develop an FPS survival game? 1 Answer