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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

GPU memory usage at runtime

Discussion in 'General Graphics' started by SLGSimon, Nov 16, 2019.

  1. SLGSimon

    SLGSimon

    Joined:
    Jul 23, 2019
    Posts:
    80
    Is it possible, at runtime, to get the total GPU memory, and currently used GPU memory on PC? Even better would be getting the GPU usage of meshes and textures.
     
  2. carrotstien

    carrotstien

    Joined:
    Jun 8, 2016
    Posts:
    37
    You can do that using the memory profiler in the editor
     
  3. SLGSimon

    SLGSimon

    Joined:
    Jul 23, 2019
    Posts:
    80
    I need this info at runtime.

    My current solution is a native plugin that pulls the GPU memory totals from
    DXGI_ADAPTER_DESC
    .
     
  4. Engborg

    Engborg

    Joined:
    Jun 12, 2019
    Posts:
    3
    Did you find another solution to this?

    Would you mind posting your solution?

    Thanks in advance!
     
  5. SLGSimon

    SLGSimon

    Joined:
    Jul 23, 2019
    Posts:
    80