Files
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
2013-10-19 12:47:53 +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
2007-05-09 13:16:37 +00:00
2023-01-03 15:51:48 +02:00
2012-10-21 16:10:49 +00:00
2020-05-17 14:13:57 +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-03 15:51:48 +02:00
2023-01-03 15:51:48 +02:00
2023-01-14 02:08:39 -03:00
2020-05-30 14:26:16 +00:00
2023-01-03 15:51:48 +02:00
2023-01-19 00:13:08 +02:00
2023-01-19 00:13:08 +02:00
2023-01-03 15:51:48 +02:00
2022-04-13 10:43:49 +00:00
2023-01-03 15:51:48 +02:00
2022-10-22 17:54:06 -07:00
2023-01-03 15:51:48 +02:00
2023-01-03 15:51:48 +02:00
2023-07-04 20:58:56 -07:00
2017-01-13 20:19:44 +00:00
2023-01-03 15:51:48 +02:00
2012-08-24 23:52:55 +00:00
2023-01-03 15:51:48 +02:00
2023-01-03 15:51:48 +02:00
2018-02-27 00:49:42 +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-07-26 23:44:25 -07: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