Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-worked cryo read to prevent multi-threading issues loading GameObject and Properties. #8

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

miragedmuk
Copy link

Re-worked read of cryo/trap references to read all data in forward-only before re-parenting and adding to Objects in a parallel loop.

GameObject constructor and LoadProperties methods both still use name tables internally which need to be read in single threaded to prevent mis-reads and possible duplication.

Added defensive check to ensure redictors array contains the index we're trying to read. Had one that only had a "Settings" redirector for a Soul Trap and no "Dino" redirector.

…ly before re-parenting and adding to Objects in a parallel loop.

GameObject constructor and LoadProperties methods both still use name tables internally which need to be read in single threaded to prevent mis-reads and possible duplication.

Added defensive check to ensure redictors array contains the index we're trying to read.  Had one that only had a "Settings" redirector for a Soul Trap and no "Dino" redirector.
@cadon cadon merged commit c07123a into cadon:master Sep 13, 2023
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.

2 participants