Ryujinx-uplift/src/Ryujinx.Graphics.GAL/Multithreading
riperiperi 492a046335
Vulkan: Buffer Mirrors for MacOS performance (#4899)
* Initial implementation of buffer mirrors

Generally slower right now, goal is to reduce render passes in games that do inline updates

Fix support buffer mirrors

Reintroduce vertex buffer mirror

Add storage buffer support

Optimisation part 1

More optimisation

Avoid useless data copies.

Remove unused cbIndex stuff

Properly set write flag for storage buffers.

Fix minor issues

Not sure why this was here.

Fix BufferRangeList

Fix some big issues

Align storage buffers rather than getting full buffer as a range

Improves mirrorability of read-only storage buffers

Increase staging buffer size, as it now contains mirrors

Fix some issues with buffers not updating

Fix buffer SetDataUnchecked offset for one of the paths when using mirrors

Fix buffer mirrors interaction with buffer textures

Fix mirror rebinding

Move GetBuffer calls on indirect draws before BeginRenderPass to avoid draws without render pass

Fix mirrors rebase

Fix rebase 2023

* Fix crash when using stale vertex buffer

Similar to `Get` with a size that's too large, just treat it as a clamp.

* Explicitly set support buffer as mirrorable

* Address feedback

* Remove unused fragment of MVK workaround

* Replace logging for staging buffer OOM

* Address format issues

* Address more format issues

* Mini cleanup

* Address more things

* Rename BufferRangeList

* Support bounding range for ClearMirrors and UploadPendingData

* Add maximum size for vertex buffer mirrors

* Enable index buffer mirrors

Enabled on all platforms for the IbStreamer.

* Feedback

* Remove mystery BufferCache change

Probably macos related?

* Fix mirrors not creating when staging buffer is empty.

* Change log level to debug
2023-08-14 14:18:47 -03:00
..
Commands Move support buffer update out of the backends (#5411) 2023-07-11 14:07:41 -03:00
Model [Ryujinx.Graphics.GAL] Address dotnet-format issues (#5366) 2023-06-28 20:20:10 +02:00
Resources Move support buffer update out of the backends (#5411) 2023-07-11 14:07:41 -03:00
BufferMap.cs Vulkan: Buffer Mirrors for MacOS performance (#4899) 2023-08-14 14:18:47 -03:00
CommandHelper.cs Move support buffer update out of the backends (#5411) 2023-07-11 14:07:41 -03:00
CommandType.cs Move support buffer update out of the backends (#5411) 2023-07-11 14:07:41 -03:00
SyncMap.cs [Ryujinx.Graphics.GAL] Address dotnet-format issues (#5366) 2023-06-28 20:20:10 +02:00
ThreadedHelpers.cs Move solution and projects to src 2023-04-27 23:51:14 +02:00
ThreadedPipeline.cs Move support buffer update out of the backends (#5411) 2023-07-11 14:07:41 -03:00
ThreadedRenderer.cs Add workflow to automatically check code style issues for PRs (#4670) 2023-07-24 18:35:04 +02:00
ThreadedWindow.cs Implement color space passthrough option (#5531) 2023-08-07 18:54:05 +01:00