Skip to content

Jecs v0.2.9

Choose a tag to compare

@Ukendio Ukendio released this 17 Aug 00:39
· 598 commits to main since this release

Jecs@0.2.9

Highlights

  • world:clear(entity) is now 1.5-2x faster than v0.2.8
  • Best Avatar is the first commercial project to have used Jecs
  • We have gotten 67 stars at the time of this post, we need 100 to get on the ecs-faq page!
  • Jecs v0.3.0 is underway, which will feature linked traversal of pairs with the same relation/target for an entity and archetype deletion.

Changelog

  • [world]:
    • Added world:delete(entity) for completely deallocating all memory for an entity without dangling references
    • Improved performance for world:clear(entity)
    • Improved performance for world:get, world:set, world:add, world:remove by using bit flags to check for any component hooks.
    • Changed world:set to also invoke OnAdd
  • [traits]:
    • Added jecs.OnDeleteTarget to specify cleanup policy for when target entities are deleted
    • Added jecs.Delete when paired together with jecs.OnDeleteTarget will cascade deletions
  • [luau]:
    • Removed WorldShim, use World instead
    • Added query:archetypes()
  • [rbxts]:
  • Changed Entity type to have a shorter nominal type for readability
  • Fixed emit of import for jecs not finding file

thread: https://discord.com/channels/385151591524597761/1248734074940559511
Check out the demo that is in WIP
Full Changelog: v0.2.8...v0.2.9