Skip to content

Avoid retrieving entity list for world limit check - #403

Closed
IuCC123 wants to merge 1 commit into
kaboomserver:masterfrom
IuCC123:perf/use-world-entity-count
Closed

Avoid retrieving entity list for world limit check#403
IuCC123 wants to merge 1 commit into
kaboomserver:masterfrom
IuCC123:perf/use-world-entity-count

Conversation

@IuCC123

@IuCC123 IuCC123 commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Use World#getEntityCount() when checking the global entity limit. This avoids retrieving the world's complete entity list for every entity spawn. The list is still retrieved when the limit is exceeded and entities need to be removed

@IuCC123
IuCC123 force-pushed the perf/use-world-entity-count branch from 9982a7a to a3ee6d4 Compare August 11, 2026 17:16
@IuCC123
IuCC123 marked this pull request as ready for review August 11, 2026 17:23
@IuCC123 IuCC123 closed this Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant