diff options
author | riperiperi <rhy3756547@hotmail.com> | 2024-01-24 22:33:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-24 19:33:52 -0300 |
commit | 65759524323166894564359a5046f1ec62a82773 (patch) | |
tree | 08a7701225a02101bbe213397e24a59ffdf718c4 /src/Ryujinx.Cpu/LightningJit/Arm32/InstTableT32.cs | |
parent | 9a28ba72b17caa89d1e60e22e1420046097701d0 (diff) |
Vulkan: Enumerate Query Pool properly (#6167)1.1.1124
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.
Diffstat (limited to 'src/Ryujinx.Cpu/LightningJit/Arm32/InstTableT32.cs')
0 files changed, 0 insertions, 0 deletions