JinxRyu/src/Ryujinx.Graphics.Vulkan/Queries
riperiperi 6575952432
Vulkan: Enumerate Query Pool properly (#6167)
Turns out that ElementAt for Queue<T> runs the default implementation as it doesn't implement IList, which enumerates elements of the queue up to the given index. This code was creating `count` enumerators and iterating way more queue items than it needed to at higher counts. The solution is just to use one enumerator and break out of the loop when we get the count that we need.

3.5% of backend time was being spent _just_ enumerating at the usual spot in SMO.
2024-01-24 19:33:52 -03:00
..
BufferedQuery.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
CounterQueue.cs Vulkan: Enumerate Query Pool properly (#6167) 2024-01-24 19:33:52 -03:00
CounterQueueEvent.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
Counters.cs Move support buffer update out of the backends (#5411) 2023-07-11 14:07:41 -03:00