Skip to content

Tweak: Reduce save operations when setting entrance discovered#3459

Merged
briaguya0 merged 1 commit intoHarbourMasters:develop-macreadyfrom
Archez:limit-entrance-discover-save
Nov 29, 2023
Merged

Tweak: Reduce save operations when setting entrance discovered#3459
briaguya0 merged 1 commit intoHarbourMasters:develop-macreadyfrom
Archez:limit-entrance-discover-save

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

@briaguya0 briaguya0 merged commit dd5e72a into HarbourMasters:develop-macready Nov 29, 2023
@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.

3 participants