aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Memory/Tracking/AbstractRegion.cs
diff options
context:
space:
mode:
authorriperiperi <rhy3756547@hotmail.com>2023-08-06 20:29:20 +0100
committerGitHub <noreply@github.com>2023-08-06 16:29:20 -0300
commit6e784e0aca240b41c83bd3e77aecf5793fdc238d (patch)
treee93e662249dfe5976064b469601d08fa77a66ead /src/Ryujinx.Memory/Tracking/AbstractRegion.cs
parent5a0aa074b661753d8f0202a73d9f6f3ac6e2ab11 (diff)
GPU: Don't sync/bind index buffer when it's not in use (#5526)1.1.975
* GPU: Don't sync/bind index buffer when it's not in use Sometimes draws don't use an index buffer. It's not necessary to check or upload data for the current index buffer binding as it won't be used. This fixes Pokemon: Legends Arceus updating a stale index buffer for every draw during its TFB pass, which was all non-indexed draws. This probably didn't cost much on normal PCs, but it had a large impact on MacOS, which the macos1 release build avoided by mirroring index buffers (the PR currently does not). Needs buffer mirrors still for the rest of the performance. There are additional cases where index buffers are bound or checked with non-indexed draws on the backend, but this one was straightforward to fix and has the largest impact. Testing is welcome to ensure nothing weird broke. * Fix case with _rebind
Diffstat (limited to 'src/Ryujinx.Memory/Tracking/AbstractRegion.cs')
0 files changed, 0 insertions, 0 deletions