Ryujinx-git/src/Ryujinx.Graphics.Gpu
riperiperi 6e784e0aca
GPU: Don't sync/bind index buffer when it's not in use (#5526)
* 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
2023-08-06 16:29:20 -03:00
..
Engine GPU: Don't sync/bind index buffer when it's not in use (#5526) 2023-08-06 16:29:20 -03:00
Image Move support buffer update out of the backends (#5411) 2023-07-11 14:07:41 -03:00
Memory GPU: Don't sync/bind index buffer when it's not in use (#5526) 2023-08-06 16:29:20 -03:00
Shader Fix incorrect fragment origin when YNegate is enabled (#4673) 2023-07-29 18:47:03 -03:00
Synchronization [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
ClassId.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
Constants.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
GpuChannel.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
GpuContext.cs Move support buffer update out of the backends (#5411) 2023-07-11 14:07:41 -03:00
GraphicsConfig.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
Ryujinx.Graphics.Gpu.csproj Move solution and projects to src 2023-04-27 23:51:14 +02:00
Window.cs Add workflow to automatically check code style issues for PRs (#4670) 2023-07-24 18:35:04 +02:00