diff options
| author | Takoroka <137927095+Takoroka@users.noreply.github.com> | 2026-11-01 01:49:31 -0400 |
|---|---|---|
| committer | kraibse <33869366+kraibse@users.noreply.github.com> | 2026-11-01 16:20:01 +0100 |
| commit | 39b9892f000b3ae943d3dd72a8729eaf71db0595 (patch) | |
| tree | 2f369ff1013e84497d27a64e815eb53499b73110 /src/audio_core/audio_render_manager.cpp | |
| parent | 89dd760cc44aec0a9401809f3837917645d8af25 (diff) | |
vulkan_device: keep an integrated GPU's budget within its memory share
CollectPhysicalMemoryInfo gives an integrated GPU 4 GiB of device memory
(6 GiB with aggressive VRAM use), since its device-local heap is system
memory. GetDeviceMemoryBudget returned the heap's driver budget instead
(21178 MiB on a Radeon 780M), and the texture cache follows that budget
for Switch 2 titles: it collected only past 20.6 GB, filling system RAM,
and kept ASTC uncompressed (the BC3 switch looks at the budget too). Cap
it at that share.
Radeon 780M, Mario Kart World title screen, 200 s: shared GPU memory
2.7 -> 3.6 GB instead of 7.6 -> 12.7 GB (0.25 instead of 1.8 GB/min),
private bytes 12.9 instead of 22.4 GB at the end, ASTC re-compressed to
BC3, same frame rate.
Diffstat (limited to 'src/audio_core/audio_render_manager.cpp')
0 files changed, 0 insertions, 0 deletions
