yuzu
yuzu copied to clipboard
vulkan: configure staging buffer size
Larger staging buffers can give performance gains in certain games. This will have the most performance improvement on systems that support resizable BAR, as it will result in a single device local mapping.
256MiB XCDE: 30fps XC2: 43fps XC3: 42fps Astral Chain: 51fps SMTV: 28fps
128MiB XCDE: 28fps XC2: 40fps XC3: 28fps Astral Chain: 48fps SMTV: 23fps
tested on my system i9 12900K and 3090RTX saw no FPS gains, only stutters in this build.
A master artifact will lack the Mainline/Early Access optimizations. Only compare against itself.
With Nvidia GPUs, you must whitelist Yuzu in Nvidia Profile Inspector in order to take advantage of Resizable Bar. Anything not whitelisted won't have ReBar support. There are guides on how to do this online.
What sort of granularity is needed on this option?
https://forum.qt.io/post/496178
In the thread they say quick and dirty, but it's been 4 years and it wasn't dirty enough to change Qt....
void ConfigureGraphicsAdvanced::SetStagingBufferSizeText(int value) {
const int step = 128;
const int offset = value % step;
if (offset != 0) {
ui->staging_buffer_size->setValue(value - offset);
}
ui->staging_buffer_size_indicator->setText(
tr("%1 MiB", "Staging buffer size (MiB)").arg(value - offset));
}
Also, this? https://github.com/Orbmu2k/nvidiaProfileInspector
Seems to have improved the fps slightly.. Thanks!
Also, this? https://github.com/Orbmu2k/nvidiaProfileInspector
That's the program that can whitelist ReBar for you, yeah. Here's a guide: https://wccftech.com/heres-how-you-can-enable-resizable-bar-support-in-any-game-via-nvidia-inspector/
A missing step in that guide is that you need to click the refresh button after selecting a program. You may also need to update your graphics card's firmware, which will be a different process for every GPU manufacturer.
Rebase?
Tested this PR on XC3 with 256M staging size , got almost 10 fps increment in colony 9 area .
#8987