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

Memory leak in Unity 5.2 WebGL?

Discussion in 'Web' started by muzzydev, May 23, 2017.

  1. muzzydev

    muzzydev

    Joined:
    Oct 31, 2014
    Posts:
    7
    We are seeing a memory leak in our WebGL build - are there any known memory links in Unity 5.2 when running WebGL? If we just start our game (in Firefox on Windows) and let it sit as the active tab we eventually get the "The browser could not allocate enough memory for the WebGL content. If you are the developer of this content, try allocating less memory to your WebGL build in the WebGL player settings." message.
     
  2. mikaelwallen

    mikaelwallen

    Joined:
    Jun 3, 2016
    Posts:
    56
    Two things you may want to try:
    * Use a newer Unity version.
    * Profile your build.