Project

General

Profile

Bug #434

Vulkan VRAM leak

Added by Garcia98 over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
General
Start date:
11/21/2020
API:
Vulkan
Cemu Version:
1.22.0h
GPU Vendor/Model:
GTX 960M (2GB)

Description

When using Vulkan the VRAM usage keeps growing and it never seems to deallocate memory, this does not happen with OpenGL.

The bug is very easy to reproduce on Breath of the Wild, if you're using Vulkan and you open the map it will allocate VRAM for it and it will never deallocate it after you close it. On the other hand when you open the map on OpenGL it will allocate VRAM too but it will quickly deallocate it a few seconds after you close it.

It's worth noting that even once the VRAM usage reaches 100% I don't experience any major slowdown.


Files

log.txt (6.47 KB) log.txt Garcia98, 11/21/2020 12:03 PM

History

#1

Updated by Exzap about 4 years ago

  • Status changed from New to Closed

This is pretty much by design. For sake of stability Cemu's Vulkan memory manager uses a greedy design where it will hold on to most allocated memory forever. It still frees up resources and reuses memory internally, there isn't an actual leak.
We'd like to change it make it more like OpenGL where unused memory is returned immediately to the driver, but that would come with a performance cost and also is non-trivial to implement.

As it is now, if you need lower RAM consumption use OpenGL.

Also available in: Atom PDF