R/Ryujinx.Audio/Renderer/Server
jhorv 666e05f5cb
Reducing Memory Allocations 202303 (#4624)
* use ArrayPool, avoid 6000-7000 allocs/sec of runtime

* use ArrayPool, avoid ~7k allocs/second during game execution

* use ArrayPool, avoid ~3000 allocs/sec during game execution

* use MemoryPool, reduce 0.5 MB/sec of new allocations during game execution

* avoid over-allocation by setting List<> Capacity when known

* remove LINQ in KTimeManager.UnscheduleFutureInvocation

* KTimeManager - avoid spinning one more time when the time has arrived

* KTimeManager - let SpinWait decide when to Thread.Yield(), and don't SpinOnce() immediately after Thread.Yield()

* use MemoryPool, reduce ~175k bytes/sec allocation during game execution

* IpcService - call commands via dynamic methods instead of reflection .Invoke(). Faster to call and with fewer allocations because parameters can be passed directly instead of as an array

* Make ButtonMappingEntry a record struct to avoid allocations. Set the List<ButtonMappingEntry> capacity according to use.

* add MemoryBuffer type for working with MemoryPool<byte>

* update changes to use MemoryBuffer

* make parameter ReadOnlySpan instead of Span

* whitespace fix

* Revert "IpcService - call commands via dynamic methods instead of reflection .Invoke(). Faster to call and with fewer allocations because parameters can be passed directly instead of as an array"

This reverts commit f2c698bdf65f049e8481c9f2ec7138d9b9a8261d.

* tweak KTimeManager spin behavior

* replace MemoryBuffer with ByteMemoryPool modeled after System.Buffers.ArrayMemoryPool<T>

* make ByteMemoryPoolBuffer responsible for renting memory
2023-04-24 02:06:23 +00:00
..
Effect Minor code formatting (#4498) 2023-03-04 14:43:08 +01:00
MemoryPool amadeus: Fixes and initial 15.0.0 support (#3908) 2022-11-28 08:28:45 +01:00
Mix misc: Reformat Ryujinx.Audio with dotnet-format (#3485) 2022-07-25 15:46:33 -03:00
Performance misc: Reformat Ryujinx.Audio with dotnet-format (#3485) 2022-07-25 15:46:33 -03:00
Sink Rename ToSpan to AsSpan (#3556) 2022-08-11 18:07:37 -03:00
Splitter infra: Migrate to .NET 7 (#3795) 2022-11-09 20:22:43 +01:00
Types misc: Reformat Ryujinx.Audio with dotnet-format (#3485) 2022-07-25 15:46:33 -03:00
Upsampler Audren: Implement polyphase upsampler (#4256) 2023-01-15 05:20:49 +01:00
Voice Reducing Memory Allocations 202303 (#4624) 2023-04-24 02:06:23 +00:00
AudioRendererManager.cs Allocate work buffer for audio renderer instead of using guest supplied memory (#3276) 2022-09-10 01:16:24 +00:00
AudioRenderSystem.cs Added Generic Math to BitUtils (#3929) 2022-12-26 14:11:05 +00:00
BehaviourContext.cs amadeus: Add missing compressor effect from REV11 (#4010) 2022-12-06 15:04:25 +01:00
CommandBuffer.cs amadeus: Add missing compressor effect from REV11 (#4010) 2022-12-06 15:04:25 +01:00
CommandGenerator.cs amadeus: Add missing compressor effect from REV11 (#4010) 2022-12-06 15:04:25 +01:00
CommandProcessingTimeEstimatorVersion1.cs amadeus: Add missing compressor effect from REV11 (#4010) 2022-12-06 15:04:25 +01:00
CommandProcessingTimeEstimatorVersion2.cs amadeus: Add missing compressor effect from REV11 (#4010) 2022-12-06 15:04:25 +01:00
CommandProcessingTimeEstimatorVersion3.cs amadeus: Add missing compressor effect from REV11 (#4010) 2022-12-06 15:04:25 +01:00
CommandProcessingTimeEstimatorVersion4.cs Removed unused usings. (#3593) 2022-08-18 18:04:54 +02:00
CommandProcessingTimeEstimatorVersion5.cs amadeus: Add missing compressor effect from REV11 (#4010) 2022-12-06 15:04:25 +01:00
ICommandProcessingTimeEstimator.cs amadeus: Add missing compressor effect from REV11 (#4010) 2022-12-06 15:04:25 +01:00
RendererSystemContext.cs misc: Reformat Ryujinx.Audio with dotnet-format (#3485) 2022-07-25 15:46:33 -03:00
StateUpdater.cs Reducing Memory Allocations 202303 (#4624) 2023-04-24 02:06:23 +00:00