Jecs v0.2.9
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:removeby using bit flags to check for any component hooks. - Changed
world:setto also invokeOnAdd
- Added
[traits]:- Added
jecs.OnDeleteTargetto specify cleanup policy for when target entities are deleted - Added
jecs.Deletewhen paired together withjecs.OnDeleteTargetwill cascade deletions
- Added
[luau]:- Removed
WorldShim, useWorldinstead - Added
query:archetypes()
- Removed
[rbxts]:- Changed
Entitytype 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