Skip to content

v1.25.1

Choose a tag to compare

@github-actions github-actions released this 11 Nov 08:58
· 35 commits to main since this release

A fix for games that add or remove entities during a tick and then index World.Entities.

Fixed

  • World.Entities[i] and Count were O(n) per access after an entity was added or removed during a tick (the view scanned past removed entities on every call), so an indexed loop over thousands of entities took tens of milliseconds. They now read a compacted copy built once per change. Which entities are listed, and their order, are unchanged.