Search Unity

Memory Allocation Question

Discussion in 'Web' started by fwalkerCirca, Jun 5, 2019.

  1. fwalkerCirca

    fwalkerCirca

    Joined:
    Apr 10, 2017
    Posts:
    57
    In our build json file we have define (which comes from the player settings, I believe):
    "TOTAL_MEMORY": 268435456

    But the index file also has a
    Module: {
    TOTAL_MEMORY: 805306368,
    onRuntimeInitialized: OurAppInitialized,
    arguments: ['-ikey', '...a48a-65ffd75bbbdf']
    }

    Looks like the one on the index file wins.
    So which one should we really be using?
     
  2. AlexHell

    AlexHell

    Joined:
    Oct 2, 2014
    Posts:
    167
    Specify in build settings in unity editor UI, not touch other due to possible bugs (may be fixed now, but was in past)

    Module: {} - "wins" .. as json reads, then module redefines all of properties, not only memory, but callbacks as you use