yuzu icon indicating copy to clipboard operation
yuzu copied to clipboard

vulkan: configure staging buffer size

Open liamwhite opened this issue 1 year ago • 8 comments

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

liamwhite avatar Sep 05 '22 02:09 liamwhite

tested on my system i9 12900K and 3090RTX saw no FPS gains, only stutters in this build.

theboy181 avatar Sep 05 '22 05:09 theboy181

A master artifact will lack the Mainline/Early Access optimizations. Only compare against itself.

goldenx86 avatar Sep 05 '22 05:09 goldenx86

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.

l3illyl3ob avatar Sep 05 '22 11:09 l3illyl3ob

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

Docteh avatar Sep 05 '22 14:09 Docteh

Seems to have improved the fps slightly.. Thanks!

theboy181 avatar Sep 05 '22 15:09 theboy181

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.

l3illyl3ob avatar Sep 05 '22 20:09 l3illyl3ob

Rebase?

Timmy5942 avatar Sep 11 '22 17:09 Timmy5942

Tested this PR on XC3 with 256M staging size , got almost 10 fps increment in colony 9 area .

Jacky400 avatar Sep 12 '22 09:09 Jacky400

#8987

liamwhite avatar Oct 05 '22 13:10 liamwhite