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.
  2. Dismiss Notice

Question VRAM info on ios devices?

Discussion in 'iOS and tvOS' started by thehen2, Aug 31, 2023.

  1. thehen2

    thehen2

    Joined:
    Apr 1, 2014
    Posts:
    54
    We're running out of VRAM and build is crashing on an iPad Pro 9.7. Looking at graphicsMemorySize it only has 512mb of available VRAM and we're targeting 1gb minimum.

    Is there any resource to find out which devices have what amount of VRAM?
     
  2. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,602
    > We're running out of VRAM and build is crashing on an iPad Pro 9.7. Looking at graphicsMemorySize it only has 512mb of available VRAM and we're targeting 1gb minimum.

    just to elaborate - there is NO VRAM on mobiles (they have shared memory so the same memory is used by cpu and gpu). Unity's graphicsMemorySize tries to estimate this: essentially it returns TotalMemory / 4.
    Also, apple does not allow appstore limiting by memory size AFAIK so you need to handle this situation (running on device with not much memory)
     
  3. thehen2

    thehen2

    Joined:
    Apr 1, 2014
    Posts:
    54
    Great this is good to know. You're right, we were crashing due to exceeding general memory usage. We'll detect general device memory and adapt. Thanks!