mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-07 23:41:18 +12:00
correctly report memory usage for host buffer cache
This commit is contained in:
parent
e00d244e0d
commit
fbea328b9b
3 changed files with 10 additions and 4 deletions
|
@ -204,7 +204,8 @@ bool MetalRenderer::IsPadWindowActive()
|
|||
|
||||
bool MetalRenderer::GetVRAMInfo(int& usageInMB, int& totalInMB) const
|
||||
{
|
||||
usageInMB = m_device->currentAllocatedSize() / 1024 / 1024;
|
||||
// Subtract host memory from total VRAM, since it's shared with the CPU
|
||||
usageInMB = (m_device->currentAllocatedSize() - m_memoryManager->GetHostAllocationSize()) / 1024 / 1024;
|
||||
totalInMB = m_recommendedMaxVRAMUsage / 1024 / 1024;
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue