Files
source/Tactical
sun-alf f8637e5972 [~] Performance optimizations around Attachment[] and Launchable[] arrays
AIMNAS with its ~50K elements in Attachment[] suffered of performance drop when MOLLE stuff is in the visible inventory. To resolve it the following is done:
* Introduce gMAXATTACHMENTS_READ with actual number of elements in Attachment[]; according refactoring.
* Introduce gMAXLAUNCHABLES_READ with actual number of elements in Launchable[]; according refactoring.
* Introduce std::multimap AttachmentBackmap for quick access to attachments using itemId as a key.
* Sort Attachment[] by attachmentIndex right after loading from XML. According order in XML is not needed anymore.
* Introduce FindAttachmentRange() for quick access to attachments using attachmentId as a key (binary search in Attachment[]).
In a few words, GetHelpTextForItemInLaptop(), ValidAttachment(), SetAttachmentSlotsFlag() were heavily optimized.
2023-09-08 21:58:14 +03:00
..
2023-01-03 15:51:48 +02:00
2023-01-03 15:51:48 +02:00
2023-01-19 00:13:08 +02:00
2023-01-22 23:35:08 +02:00
2023-01-14 02:08:39 -03:00
2020-06-17 22:27:20 +00:00
2020-06-25 22:42:44 +00:00
2023-01-03 15:51:48 +02:00
2023-01-03 15:51:48 +02:00
2023-01-03 15:51:48 +02:00
2023-01-19 00:13:08 +02:00
2014-01-01 12:02:23 +00:00
2017-09-13 20:01:48 +00:00
2023-01-03 15:51:48 +02:00
2023-01-19 00:13:08 +02:00
2014-04-24 18:35:30 +00:00
2023-01-19 00:13:08 +02:00
2016-04-24 19:59:25 +00:00
2023-01-19 00:13:08 +02:00
2023-01-03 15:51:48 +02:00
2023-01-19 00:13:08 +02:00
2023-01-22 23:35:08 +02:00
2023-01-03 15:51:48 +02:00
2023-01-03 15:51:48 +02:00
2023-01-03 15:51:48 +02:00
2023-01-03 15:51:48 +02:00
2022-01-16 13:59:59 +00:00
2023-01-19 00:13:08 +02:00
2022-01-26 01:02:30 +00:00
2023-01-03 15:51:48 +02:00
2016-04-24 19:59:25 +00:00
2023-01-19 00:13:08 +02:00
2023-09-05 18:57:40 +03:00
2023-01-19 00:13:08 +02:00
2023-01-03 15:51:48 +02:00
2023-01-03 15:51:48 +02:00
2023-01-03 15:51:48 +02:00
2023-01-03 15:51:48 +02:00
2023-01-19 00:13:08 +02:00
2023-01-03 15:51:48 +02:00
2023-01-03 15:51:48 +02:00
2023-01-03 15:51:48 +02:00
2023-01-03 15:51:48 +02:00
2023-01-03 15:51:48 +02:00
2023-08-22 00:22:20 +02:00