Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Optimizing Memory

Discussion in 'Project Tiny' started by dallin_unity, Dec 8, 2020.

  1. dallin_unity

    dallin_unity

    Joined:
    Dec 18, 2019
    Posts:
    40
    Hi guys, I'm currently working on a project using tiny 0.31.0
    I often encounter "Out Of Memory" issue, especially when I add more objects (entities) on scene, you guys got any tips to help me optimize memory?
    Thanks a lot.
     
  2. AbdulAlgharbi

    AbdulAlgharbi

    Unity Technologies

    Joined:
    Jul 27, 2018
    Posts:
    319
    Hi
    Make sure to add the following components to your Wasm build settings
    set the wasm memory size to something reasonable based on the size of the assets that you are loading
    upload_2020-12-8_12-19-40.png
     
  3. newguy123

    newguy123

    Joined:
    Aug 22, 2018
    Posts:
    1,248
    How can we determine that "something reasonable"? Is there some kind of rule of thumb/formula?
     
  4. AbdulAlgharbi

    AbdulAlgharbi

    Unity Technologies

    Joined:
    Jul 27, 2018
    Posts:
    319
    Not really there is no rule that I'm aware of but it depends on your project, as a starting point maybe set it to 256MB