Files
OpenRA/OpenRA.Game
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
..
2023-10-30 23:31:33 +02:00
2025-04-19 16:34:13 +01:00
2025-11-23 13:34:31 +02:00
2023-01-11 11:58:54 +02:00
2025-11-23 13:34:31 +02:00
2025-09-11 06:17:04 +01:00
2025-09-14 12:32:49 +01:00
2025-05-09 16:28:04 +03:00
2023-06-06 11:51:47 +03:00
2023-04-08 16:51:51 +03:00
2025-01-07 18:07:13 +02:00
2023-01-11 11:58:54 +02:00
2025-12-12 12:32:10 +02:00
2023-04-08 16:51:51 +03:00
2023-11-16 08:45:10 +02:00