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

Feedback Guide To Memory Heap Allocation For WebGL Developers

Discussion in 'Web' started by DerrickBarra, Feb 26, 2021.

  1. DerrickBarra

    DerrickBarra

    Joined:
    Nov 19, 2013
    Posts:
    210
    Hi everyone, since it was requested in another thread, I figured I would share a Google Doc I made for my team about how to estimate memory usage on the heap for various file types.
    (.jpg, .png, .ktx2/.basis, .glb/.gltf + Draco)

    Feel free to look it over, and if you spot something incorrect feel free to leave a comment here and I'll update the document.

    Unity WebGL Memory Estimation Guide

    Our team is making LOD's for all of our assets and then loading in the proper version based on known maximum heap size for mobile devices and desktop. You can read more on that subject here.
     
    OceanX000, Nyanpas, xeniaeo and 2 others like this.
  2. chibinhdang

    chibinhdang

    Joined:
    Oct 23, 2017
    Posts:
    2
    This is incredible. Thank you so much! I'll be sure to leave a comment on the doc if I find improvements.
     
  3. Nyanpas

    Nyanpas

    Joined:
    Dec 29, 2016
    Posts:
    406
    The very nicest. :3