Skip to content

Releases: hardlyardi/b226

0.2.3

18 Jul 03:52

Choose a tag to compare

Version 0.2.3

Wally

## 0.2.3 Improvements
Doubled Performance

Full Changelog: 0.2.2...0.2.3

Release v0.2.2

18 Jul 01:51
a049a36

Choose a tag to compare

Version 0.2.2

Warning

This release is running non-native & optimize 0 because I forgot to change it, consider using a patch at or above 0.2.3

Wally

## 0.2.2 Changes
/ CleanupOn* changed:
  / CleanupOnClear -> OnClear
  / CleanupOnClearTarget -> OnClearTarget
  # Cleanup actions have retained their naming. E.g., CleanupDelete: pair(OnClearTarget, CleanupDelete)
/ Deleting an entity now clears its components after clearing references
+ You can now modify entities from inside hooks
+ ecs.in_use(entity) to check if it is safe to change the hooks on an entity
+ New Cleanup Conditions:
  + OnClearAsRelation (cleans when this ID is used as the first item of a relationship, OnClear/OnDelete does not have this behavior)
  + OnDelete, OnDeleteTarget, OnDeleteAsRelation
+ Prebuilt Cleanup Trait Pairs:
  + DeleteOnClear + DeleteOnDelete
  + DeleteOnClearTarget + DeleteOnDeleteTarget
  + DeleteOnClearAsRelation + DeleteOnDeleteAsRelation
+ Query Monitors:
  + query:monitor_added(callback)
  + query:monitor_removed(callback)
  + query:monitor_added_row(callback)
  + query:monitor_removed_row(callback)
  # As of right now, monitors do not support wildcard queries.
## 0.2.2 Improvements
+ Proper README documentation
+ Improved Unit Testing for Queries, Bulk API, Observers, Monitors, Graph Traversal, and more.
+ Optimized memory efficiency for hooks on relations
+ Optimized query matcher caching to inline the first fastpath
+ Query match page tests are now stored in a sorted array (based on page ptr) for more predictable access patterns
## 0.2.2 Fixes
+ Fixed multiple bugs with pairs
+ Fixed a bug with ecs.bulk_set not changing values
+ Fixed a bug with arch_ensure_dense / queries that could lead to UB
+ Fixed a bug with removed observers that could lead to UB
+ Fixed multiple bugs with ecs.clear

Full Changelog: 0.1.0...0.2.2

0.1.0

06 Jul 02:31

Choose a tag to compare

Wally

0.1.0 Highlights

+ Bulk API

+ Cached Queries
  - query:entities_cached() [call multiple times]
  - query:archetypes_cached() [readonly]
  - query:observe_added(callback)
  - query:observe_removed(callback)

+ Exclusive Relationships

+ Cleanup Traits

+ Old & New Solver support:
  - b2.ecs(new_solver)