Files
OpenRA/OpenRA.Game/Graphics
RoosterDragon bcfaa44d66 Amortize allocations when sorting renderables.
Using OrderBy provides a stable sort, but internally allocates a buffer every time for storing the sort keys. We'd like to avoid this allocation, but we also can't directly use Array.Sort/Span.Sort as these are unstable sorts.

By calculating sort keys with the item index embedded, we can ensure a stable sorting result whilst being able to reuse the buffer for the sort keys across future calls.
2025-12-15 19:33:19 +02:00
..
2025-12-12 12:32:10 +02:00
2025-04-02 10:18:32 +03:00
2025-04-02 10:18:32 +03:00
2025-02-16 12:45:19 +01:00
2023-11-10 10:38:41 +02:00
2024-11-15 22:28:18 +02:00
2023-01-11 11:58:54 +02:00