Search Unity

Question ~200FPS drop from editor to WebGL. VSync stays active after disable

Discussion in 'Web' started by reachout, Mar 22, 2021.

  1. reachout

    reachout

    Joined:
    Jan 15, 2021
    Posts:
    10
    My game gets ~200FPS in the editor, then after I build it, it gets less than 15 in the browser. In profiler, the problem seems to be the CPU, with 70-80% of the load coming form 'VSync'. In Player Settings, VSync is set to 'Don't Sync' for every quality level. When I run Task Manager, CPU use is only around 15% with some peaking at 20%+. I've gone through and reduced the texture sizes, the game is now around 600KB in size but this did nothing. I've read any documentation I could find and it hasn't improved. I've also checked for help threads all day yesterday and got nothing.

    My setup is Unity 2020.3.0f1, Windows 7 64-bit. Firefox 86. I've played other Unity WebGL games and they run fine. I am basically a noob so hopefully I'm doing something dumb that can be easily fixed.
     
  2. sumpfkraut

    sumpfkraut

    Joined:
    Jan 18, 2013
    Posts:
    242
  3. reachout

    reachout

    Joined:
    Jan 15, 2021
    Posts:
    10
    Thanks for the reply. Hardware acceleration is already on by default.
     
  4. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,648
    Have you tried a mobile build like Android?
     
  5. reachout

    reachout

    Joined:
    Jan 15, 2021
    Posts:
    10
    It seems this issue is with Firefox. I tried it with Opera on a whim and it runs fine. It targets to 60fps which I don't remember setting but I didn't look into it as 60fps is enough.