Profiling VRAM?

How do you profile VRAM? I can’t seem to find it in Memory Insights.

Hi Fhurtubise,

Good question.

I googled “unreal engine profile vram” and came across this post that mentions stat Memory

When typing in ‘Stat Memory’ I noticed many other memory debug commands. This led me to stat D3D12Memory

Hope that helps!

Using the RHI Module:

#include "DynamicRHI.h"
FTextureMemoryStats TextureMemoryStats;
// TextureMemoryStats.AllocatedMemorySize;
// TextureMemoryStats.TotalGraphicsMemory;