Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

WebGL Framerate during Fullscreen

Discussion in 'WebGL' started by JakeOfSpades, Mar 18, 2017.

  1. JakeOfSpades

    JakeOfSpades

    Joined:
    Aug 22, 2015
    Posts:
    44
    Does anyone have issues with their game's framerate when enabling full screen? When I enable it my game gets quite laggy which does make sense but I didn't expect it to be terrible, reducing the canvas size seems to fix it but I would prefer if my game was fullscreen by default (check it out: https://squarz.io/). My games framerates are fine on other devices (iOS and Android) so Im just wondering if its WebGL's limitations....

    Any thoughts or solutions? Is your game fullscreen and buttery smooth?
     
    MFKJ likes this.
  2. lightbreak

    lightbreak

    Joined:
    May 24, 2014
    Posts:
    5
    up.
    having the same issue.
    I narrowed down the issue to macs running on full screen (doesnt matter what browser)
    tried the game on a windows and its smooth on full screen, the game's fps DOES NOT drop during this issue but the stuttering is present and makes it look laggy.
     
    Magiichan likes this.
  3. jc_crash

    jc_crash

    Joined:
    Jul 30, 2019
    Posts:
    21
    This still appears to be an issue. Mine seems to run worse on Mozilla, but regardless, for both Chrome and Firefox, framerates drop significantly when in fullscreen.
     
  4. ammar_12435

    ammar_12435

    Joined:
    Jun 28, 2018
    Posts:
    24
    An fps drop is expected in full screen since the pixels to be rendered increase. What you can do to generally improve fps:
    1- Static Batching
    2- Texture compression
    3- Enable gpu instancing on shared materials
    4- Disable shadows in global light settings (this increased fps massively for us)
    5- If you are using unity's audio source as background music with long looping sounds that could also slowly eat up fps. (See this)
     
  5. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    944
  6. AgnosiaGames

    AgnosiaGames

    Joined:
    May 26, 2020
    Posts:
    57
    We have an asset for this problem. On full screen the game has bigger resolution and so more "pixel count". that's why FPS is decreasing on fullscreen. Our asset will reduce pixel ratio dynamically to increase FPS when resolution is increased on full screen. You can check our asset for more information.
    http://u3d.as/1Xr0
     
  7. Bordeaux_Fox

    Bordeaux_Fox

    Joined:
    Nov 14, 2018
    Posts:
    589
    Our WebGL 2.0 game runs at 144 fps in fullscreen (Full HD). We used formerly Unity 2019.4 but now switched to Unity 2020.2.0f1. We only observed a performance spike when switching the quality tier. But this is well known and documented by Unity.
     
  8. MFKJ

    MFKJ

    Joined:
    May 13, 2015
    Posts:
    264
    I am getting low fps on full screen, is there any solution available?