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

Move Game Saving to Separate Thread #2820

Merged
merged 12 commits into from
May 5, 2023

Conversation

Malkierian
Copy link
Contributor

@Malkierian Malkierian commented May 2, 2023

Makes game save flow operate on LUS thread pool. Has all thread safety I can think of.

Build Artifacts

…ude gameplaystats.h` and `InitStatTracker` in the cpp to fix compile issues.

Adds SaveContext reference parameters to SaveFunc and existing implementations in preparation for threaded saves.
Platform-specific save code removed.

Thread safety added. Will wait for thread pool tasks to finish before resetting or closing.
…deleted at the end of the threaded function to prevent possible issues with the stack.
soh/src/code/z_play.c Outdated Show resolved Hide resolved
@briaguya-ai briaguya-ai changed the base branch from develop to develop-spock May 5, 2023 21:17
@leggettc18 leggettc18 merged commit 778f548 into HarbourMasters:develop-spock May 5, 2023
7 checks passed
@Malkierian Malkierian deleted the threaded-saves branch May 7, 2023 01:58
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

5 participants