Search Unity

Run webgl game above 60 fps and webgl memory size

Discussion in 'Web' started by OneManArmy3D, Jun 22, 2017.

  1. OneManArmy3D

    OneManArmy3D

    Joined:
    Jun 2, 2011
    Posts:
    191
    If you want to run webgl game above 60 fps, you can start Chrome with --disable-gpu-vsync, or in Firefox change layout.frame_rate from -1 to 0 and layers.offmainthreadcomposition.frame-rate from -1 to 1000.
    But then webgl memory size must be increased ~4 times (at least in my case), otherwise i get message "Out of memory ....".
    Is it normal?
     
  2. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    Not really normal. Could you try to Build&Run with the profiler enabled and look at memory consumption?

    why would you want to disable gpu sync?
     
  3. OneManArmy3D

    OneManArmy3D

    Joined:
    Jun 2, 2011
    Posts:
    191
    My default browser is Firefox.
    webgl memory size is set to 160 and everything works fine.
    screenshot from profiler:
    160mb OFF.png

    when i change layout.frame_rate from -1 to 0" and
    layers.offmainthreadcomposition.frame-rate from -1 to 1000
    i can't launch game anymore with 160Mb.

    400Mb still shows out of memory when level is loading.
    440Mb:
    440mb ON.png
    and after i changed back settings in firefox:
    440mb OFF.png