How to view used GPU's memory

Profiler has gpu usage tab but it doesnt tell gpu memory usage
unless…

as for memory tab in profiler, it probably only displays system memory, or system memory mixed with gpus memory

i want to know how much gpu’s memory i used and how much i have left, is there a way?

EDIT
what a surprise, someone has vram in profiler but i clearly dont
his pic:

Okay guys i figured this out and ill give you advice because unity doesnt care about making it more obvious

I compared my total used gpu memory (also called vram) from Process hacker before and after launching my game
and if we add everything in Profiler Rendering that contains a size like MB,kb or gb
then that value is pretty much the same that the value in process hacker increased by

so if you add everything in Rendering tab, thats your total vram/gpu memory usage

We do care about making it more obvious. It’s just not as simple as adding up all textures, shaders and material memory, because some of that is CPU memory. We’re working towards having a full accounting for VRAM usage (or just normal RAM dedicated to the Graphics Driver on unified RAM systems) in 2022.2. We just have to make sure it’s accurate across all platforms, Graphics API’s, Asset Types and Import Settings.

That second screenshot btw is ages old, probably Unity 5.x or 4.x and the number has since been removed, iirc because of its inaccuracy. The Memory Profiler Module and the Memory Profiler Package display the Gfx or Graphics & Graphics Driver Memory, which still isn’t an accurate account of VRAM, but is the closest there is until we fix up the reporting.

1 Like

As I’m now on 2022.3, does this mean I can do this? I can see that I’m using 16 gigs of Textures, but I’m using the MIP Streaming system, but can’t see anywhere in the Memory Profiler that shows what’s actually on the GPU.

Yes.

The reporting has been fixed up, though as the button in the toolbar of the 2022.2 version of the Memory Usage Profiler Module suggest, you might want to install and open the Memory Profiler Package for the most accurate numbers and detailed breakdowns. Graphics memory usage is clearly outlined on all three major pages in there (Summary, Unity Objects, and All Of Memory) since versions 1.0+ (though I recommend using the newest version, at this moment 1.1) and the GPU memory reporting is accurate for Snapshots captured from 2022.2+ Editors or Players.

N.B.: We don’t call it VRAM in the tool because not all platforms have dedicated VRAM. Graphics memory means the same thing for platforms with dedicated VRAM. On platforms with shared RAM, it just means memory dedicated to the GPU.

1 Like