0
0
Fork 0
This repository has been archived on 2024-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
ryujinx-final/Ryujinx.Graphics.Gpu/Shader/DiskCache
jhorv 5131b71437
Reducing memory allocations (#4537)
* add RecyclableMemoryStream dependency and MemoryStreamManager

* organize BinaryReader/BinaryWriter extensions

* add StreamExtensions to reduce need for BinaryWriter

* simple replacments of MemoryStream with RecyclableMemoryStream

* add write ReadOnlySequence<byte> support to IVirtualMemoryManager

* avoid 0-length array creation

* rework IpcMessage and related types to greatly reduce memory allocation by using RecylableMemoryStream, keeping streams around longer, avoiding their creation when possible, and avoiding creation of BinaryReader and BinaryWriter when possible

* reduce LINQ-induced memory allocations with custom methods to query KPriorityQueue

* use RecyclableMemoryStream in StreamUtils, and use StreamUtils in EmbeddedResources

* add constants for nanosecond/millisecond conversions

* code formatting

* XML doc adjustments

* fix: StreamExtension.WriteByte not writing non-zero values for lengths <= 16

* XML Doc improvements. Implement StreamExtensions.WriteByte() block writes for large-enough count values.

* add copyless path for StreamExtension.Write(ReadOnlySpan<int>)

* add default implementation of IVirtualMemoryManager.Write(ulong, ReadOnlySequence<byte>); remove previous explicit implementations

* code style fixes

* remove LINQ completely from KScheduler/KPriorityQueue by implementing a custom struct-based enumerator
2023-03-17 13:14:50 +01:00
..
BackgroundDiskCacheWriter.cs Make structs readonly when applicable (#4002) 2022-12-05 14:47:39 +01:00
BinarySerializer.cs New shader cache implementation (#3194) 2022-04-10 10:49:44 -03:00
CompressionAlgorithm.cs New shader cache implementation (#3194) 2022-04-10 10:49:44 -03:00
DiskCacheCommon.cs New shader cache implementation (#3194) 2022-04-10 10:49:44 -03:00
DiskCacheGpuAccessor.cs Vulkan: Add workarounds for MoltenVK (#4202) 2023-01-13 01:31:21 +01:00
DiskCacheGuestStorage.cs Vulkan backend (#2518) 2022-07-31 18:26:06 -03:00
DiskCacheHostStorage.cs Move gl_Layer to vertex shader if geometry is not supported (#4368) 2023-02-25 10:39:51 +00:00
DiskCacheLoadException.cs New shader cache implementation (#3194) 2022-04-10 10:49:44 -03:00
DiskCacheLoadResult.cs New shader cache implementation (#3194) 2022-04-10 10:49:44 -03:00
DiskCacheOutputStreams.cs New shader cache implementation (#3194) 2022-04-10 10:49:44 -03:00
GuestCodeAndCbData.cs Make structs readonly when applicable (#4002) 2022-12-05 14:47:39 +01:00
ParallelDiskCacheLoader.cs Move gl_Layer to vertex shader if geometry is not supported (#4368) 2023-02-25 10:39:51 +00:00
ShaderBinarySerializer.cs Reducing memory allocations (#4537) 2023-03-17 13:14:50 +01:00