Skip to content

Master 1dot13#224

Merged
sun-alf merged 2 commits into
masterfrom
master_1dot13
Sep 10, 2023
Merged

Master 1dot13#224
sun-alf merged 2 commits into
masterfrom
master_1dot13

Conversation

@sun-alf
Copy link
Copy Markdown
Contributor

@sun-alf sun-alf commented Sep 8, 2023

No description provided.

To enable built-in FPS, change gbFPSDisplay to SHOW_FULL_FPS (1) in debugger (or change it in src code and rebuild).
…rays

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.
@sun-alf sun-alf merged commit bb73a45 into master Sep 10, 2023
@sun-alf
Copy link
Copy Markdown
Contributor Author

sun-alf commented Sep 13, 2023

Fixed in 8a241d2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant