Skip to content

feat: load player progress lazily on connect#225

Open
Caedis wants to merge 6 commits into
masterfrom
caedis/lazy-player-progress-load
Open

feat: load player progress lazily on connect#225
Caedis wants to merge 6 commits into
masterfrom
caedis/lazy-player-progress-load

Conversation

@Caedis

@Caedis Caedis commented May 25, 2026

Copy link
Copy Markdown
Member

Per-player progress files were all read at world load. Read each player's file on first connect instead, guarded so reconnects do not clobber newer in-memory progress. Legacy combined file still loads eagerly for migration.

Per-player progress files were all read at world load. Read each
player's file on first connect instead, guarded so reconnects do not
clobber newer in-memory progress. Legacy combined file still loads
eagerly for migration.
@Caedis
Caedis requested a review from a team May 25, 2026 18:27
@Caedis Caedis added the Refactor For PRs rewriting a part of the code to have a nicer code overall. label May 25, 2026
@Caedis
Caedis enabled auto-merge (squash) May 25, 2026 18:42
@tiffit
tiffit self-requested a review May 30, 2026 23:25

@tiffit tiffit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to break something like /bq_admin reset all. Players who haven't logged into the server yet don't have their data reset. This is a minor issue but there might be other things that depend on a player not being online that could break because of this. Probably worth doing some testing for that

@Dream-Master

Copy link
Copy Markdown
Member

@Caedis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Refactor For PRs rewriting a part of the code to have a nicer code overall.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants