Hello
I have problem with building the application for WebGL platform, that is the FPS number is much lower than in editor (15-30FPS in browser; ~80 in editor - in the case of other scenes the diffrence is even higher). The main load comes from the renderer, and as I read in your documentation the GPU performance should be similar to that one of native version. Is such drop in framerate typical to WebGL? If not, could you tell me why it happens, and what I can do in order to fix this issue ? Please let me know if you want any additional info about the setup.
Is the image from profiling your WebGL build ? or did you profile the Editor itself ?
I would recommend to profile your webgl build, maybe you’ll find that you are CPU bound.
Yep it is. Here I uploaded the screenshots from editor profiler and from webgl one (one with better framerate is from editor):
indeed it looks like you are CPU-bound: Camera.Render alone is taking ~43ms
you could drill down and try to find out what’s actually taking the time inside Camera.Render
OK thanks, I don’t have much experience in Unity and I have thought that my app is GPU-bound.
I have the same issue: editor 130 fps, webgl biuld 60 fps. Can anyone help me resolve issue?(especially something wrong with Camera.Render)
Most browsers will cap your frame rate at 60fps, so unless you disable that cap, you probably won’t be able to exceed that number anyways.
Wow, I didn’t know it. Thank you for reply!![]()
Hi, Jonas, can you help me again and say what it that? We are close to release, and I need fix this issue: WebGL build lag during first 5-10 seconds…than normalize. There aro no any issue in editor. Screenshot:
Which browser is this? Firefox and Egde use AOT compilation on Unity’s asm.js code, but Chrome and Safari will JIT it, and the JIT needs to run the code for some time to see which pieces of code are used a lot and need to be optimized, which cause such a “warm-up” phase as you describe.
Yeah, you are right! I did use Chrome for testing. It works fine in Firefox. Thank you !![]()
Six Years in the future and this helped me a lot! Thanks!





