Skip to content

Perf/cache player world membership - #76

Merged
Z-Kris merged 4 commits into
blurite:masterfrom
Khaled431:perf/cache-player-world-membership
Jul 18, 2026
Merged

Perf/cache player world membership#76
Z-Kris merged 4 commits into
blurite:masterfrom
Khaled431:perf/cache-player-world-membership

Conversation

@Khaled431

@Khaled431 Khaled431 commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

With the introduction of world entities, there was some regressions in performance.

This PR, cuts redundant work in player info by caching world membership once per cycle and storing stationary state with the player index.

  • Around 13.4% less time spent in player info overall.
  • Drops world-membership lookups from 7,996,000 to 2,000 per tick.

@Khaled431
Khaled431 force-pushed the perf/cache-player-world-membership branch from 4040a6a to 98745fa Compare July 18, 2026 02:54
@Khaled431
Khaled431 marked this pull request as ready for review July 18, 2026 03:00
@Khaled431
Khaled431 force-pushed the perf/cache-player-world-membership branch from 98745fa to 7e502f9 Compare July 18, 2026 03:29
@Z-Kris
Z-Kris merged commit 5238128 into blurite:master Jul 18, 2026
3 checks passed
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.

2 participants