Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

PSM / Vita Out of Memory problems using only 136 megs of RAM

Discussion in 'PSM' started by Cryogen, May 2, 2014.

  1. Cryogen

    Cryogen

    Joined:
    Sep 5, 2013
    Posts:
    5
    Is anyone having problems running out of memory?

    Right after the game boots the console reports:
    [21.575765] 0: fps 0.85 ms/f 1173.11 [kernel avail main 144MB, cdram 0MB, phycont 26MB]

    Then my PSM game crashes on the vita when it uses 136.4 MB of Memory (and theoretically the device should have 512 megs less the OS size), which is 44.3 MB Unity, 38.9MB Mono, 37.9 megs Gfx Driver, 16 MB profiler)

    Roughly speaking I have 21 Megs of textures, 4 Megs of meshes, 10 Megs of animation and 4 megs of audio. 1600 game objects, 5700 total objects in scene, 7600 total object count;

    This should not be a lot of resources for a device that should have 512 megs of RAM.

    In the presentation on Unity PSM they show the console trace of an app booting that has 400+ megs available.

    Any help appreciated,

    thanks.
     
  2. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    The development console has 2x the ram... are you using dev device and I believe that's under how much vram it has so not sure here. Perhaps post bug report?
     
  3. blackbird

    blackbird

    Joined:
    Aug 9, 2011
    Posts:
    588
    i got always 166 mega and one time i got the message out of memory etc but it runs at 30 frames i was amazed how powerfull it was
     
  4. Cryogen

    Cryogen

    Joined:
    Sep 5, 2013
    Posts:
    5
    I'm using a plain old Vita to test. I'm definately under the VRAM limit, as I forced it to fastest quality mode with 1/8 res textures until I get things working. (And previously it was complaining about that, and the warning has gone away)
     
  5. derkoi

    derkoi

    Joined:
    Jul 3, 2012
    Posts:
    2,246
    I assumed those using Unity PSM wouldn't have the Vita dev kit would be using a retail Vita?
     
  6. icurafu

    icurafu

    Joined:
    Mar 11, 2014
    Posts:
    10
    The Vita has 128MB of (physical) VRAM. I'm not sure how unity does memory management for systems and video ram.

    It would be good if the Unity PSM team came back with these kind of constraints so that we didn't have to research them ourselves.
     
    Last edited: May 5, 2014