Skip to content

PicoES v1.0.0-alpha8

Pre-release
Pre-release
Compare
Choose a tag to compare
@ayebear ayebear released this 11 Apr 07:09
· 46 commits to master since this release
  • An additional 1-3x performance boost all around
    • This is mostly from the has() changes affecting query performance
    • Also from simpler set() logic
  • Cleaned up Entity interface
    • New has() with single-key check. This is a breaking change.
      • This decision was made based on performance, as well as very low usage of has[Any/All] in production.
      • It is more typical to combine .has() checks with &&, ||, and ! operators
      • In the few cases of libraries - like PicoES itself, or something like an EntitySet in a real project - a simple .some() or .every() call will still work great for whichever custom case you need.
    • Removed methods (setRaw, setWithFallback, hasAny, has[All], and removeAll)
    • Made some methods private (cloneComponentTo, removeAll - moved to destroy)
    • Added new replace based on old setRaw
  • Cleaned up tests (removed assert)
  • Updated documentation, fixed args, and updated examples