Skip to content

Optimization: Reserve capacity for projectile hide/show vector in W3DModelDraw - #169

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/modeldraw-reserve-optimization
Open

Optimization: Reserve capacity for projectile hide/show vector in W3DModelDraw#169
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/modeldraw-reserve-optimization

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-133. The issue was that: Vector reallocation copying AsciiString objects caused a write access violation due to memory corruption.

  • Added showHideVector.reserve(maxCount) call in W3DModelDraw.cpp before iterating to populate the vector with projectile sub-object names.
  • This optimization prevents unnecessary reallocations when generating the list of sub-objects to hide or show.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 7844120

Not quite right? Click here to continue debugging with Seer.

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.

0 participants