Skip to content

v2.6.0 - ComboZone:RemoveZone() and ComboZone/BoxZone performance improvements

Compare
Choose a tag to compare
@mkafrin mkafrin released this 08 Jul 04:03
· 8 commits to master since this release

This update has one new feature as well as performance optimizations for both ComboZones and BoxZones.

This release adds:

  • ComboZone:RemoveZone()
    • A refactor and improvement of the ComboZone grid cache, as well as large performance optimizations to BoxZone creation has made it possible to finally add this method. See here for more info.
  • Performance Optimizations
    • BoxZone:Create() is now ~50% faster in the most common case (no scale or offset), and ~30% faster otherwise.
    • ComboZone grid cache is now efficient enough to where we can place all the zones into it at ComboZone creation with no penalty. This avoids the runtime cost every time you enter a ComboZone grid cell.

The resource itself can be found in PolyZone.zip. You can grab an example resource from release 2.2.0.