mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-30 16:37:11 +02:00
Array based RangeList that caches Address/EndAddress (#2642)
* Array based RangeList that caches Address/EndAddress In isolation, this was more than 2x faster than the RangeList that checks using the interface. In practice I'm seeing much better results than I expected. The array is used because checking it is slightly faster than using a list, which loses time to struct copies, but I still want that data locality. A method has been added to the list to update the cached end address, as some users of the RangeList currently modify it dynamically. Greatly improves performance in Super Mario Odyssey, Xenoblade and any other GPU limited games. * Address Feedback
This commit is contained in:
parent
6c85989ac9
commit
32346067b3
4 changed files with 149 additions and 42 deletions
|
@ -365,7 +365,7 @@ namespace Ryujinx.Graphics.Gpu.Memory
|
|||
{
|
||||
lock (_lock)
|
||||
{
|
||||
Items.Clear();
|
||||
Count = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue