Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

WebGL strange behaviour?

Discussion in 'Web' started by bangoo, May 1, 2021.

  1. bangoo

    bangoo

    Joined:
    Apr 25, 2015
    Posts:
    12
    If I export and launch simple scene in WebGL it shows high FPS in chrome 50-60.
    After that I add some models with large amount of polygons for test and the exported project shows only 2-4 FPS.
    Then I delete these models, and export the project again and it shows !!! 2-4 FPS without models.
    The 1 and the 3-d scenes are the same, just without models, what causes the FPS drop after the models are deleted?
    It seems to me WebGL is a bad solution for a 3d game.
     
  2. OceanX000

    OceanX000

    Joined:
    Feb 24, 2021
    Posts:
    120
    Maybe you can profile yourself using Unity Profiler or chrome javascript profiler to find out which function costs most.
     
  3. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    953
    If you can make a test case that showcases the behavior, maybe hosting an affected build somewhere, that would help someone to look into the actual content for an issue. Just based on a description there may be little that anyone can do to help.