From 9aa72e62953015ce4410d8f6a74763a20c9ee2f4 Mon Sep 17 00:00:00 2001 From: Samuliak Date: Sun, 18 Aug 2024 20:03:37 +0200 Subject: [PATCH] report vram usage --- src/Cafe/HW/Latte/Renderer/Metal/MetalRenderer.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Cafe/HW/Latte/Renderer/Metal/MetalRenderer.cpp b/src/Cafe/HW/Latte/Renderer/Metal/MetalRenderer.cpp index 1536c88b..76139e63 100644 --- a/src/Cafe/HW/Latte/Renderer/Metal/MetalRenderer.cpp +++ b/src/Cafe/HW/Latte/Renderer/Metal/MetalRenderer.cpp @@ -215,12 +215,10 @@ bool MetalRenderer::IsPadWindowActive() bool MetalRenderer::GetVRAMInfo(int& usageInMB, int& totalInMB) const { - debug_printf("MetalRenderer::GetVRAMInfo not implemented\n"); + usageInMB = m_device->currentAllocatedSize(); + totalInMB = usageInMB; - usageInMB = 1024; - totalInMB = 1024; - - return false; + return true; } void MetalRenderer::ClearColorbuffer(bool padView)