Release 2.1.1 - #19
Merged
Merged
Conversation
The refresh task ran hook.getAllIslandData() on the main thread every refresh cycle. In both game modes that is a full synchronous database read (Database#loadObjects()), which deserializes every island record ever created and was profiled at up to ~1s per cycle on large servers. refresh(hook) now loads the island data on an async task and hops back to the main thread only for the cheap part: island registry lookups, player/permission checks, and swapping in the new top ten. Placeholder snapshots update per hook as each async load lands. Bump version to 2.1.1. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Um9roAZ8pVAqp6TZEMBjMr
Load island data off the main thread to fix periodic lag spikes
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Um9roAZ8pVAqp6TZEMBjMr
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Patch release: fixes periodic server lag spikes caused by the top ten refresh reading the whole island database on the main thread. The database read now runs async; only island registry/permission lookups stay on the main thread (#18).
No config, locale, or data format changes.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Um9roAZ8pVAqp6TZEMBjMr