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

Tweak: Reduce save operations when setting entrance discovered #3459

Conversation

Archez
Copy link
Contributor

@Archez Archez commented Nov 28, 2023

The "set entrances discovered" logic would run twice, once for the main entrance and a second time for the "reverse" entrance (to handle saving two-way entrances). The end of the operation would perform a save, which meant that two saves were being performed on the same frame.

This limits the save operation to only happen once for each entrance pair, and also prevents setting the "reverse" entrance when decoupled is on.

This is an effort to reduce the various save operations happening with all the different features in SoH now.

Build Artifacts

@briaguya-ai briaguya-ai merged commit dd5e72a into HarbourMasters:develop-macready Nov 29, 2023
8 checks passed
@Archez Archez deleted the limit-entrance-discover-save branch November 29, 2023 15:38
A-Green-Spoon pushed a commit to A-Green-Spoon/Shipwright that referenced this pull request Nov 30, 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.

None yet

3 participants