Skip to content

v2.3.0 - Optimization for exhaustive ComboZones, new debugBlip option, and new helper function

Compare
Choose a tag to compare
@mkafrin mkafrin released this 19 Oct 23:57
· 28 commits to master since this release

This is a pretty small but useful update, especially for those who are making use of exhaustive ComboZones.

This release adds:

  • Optimization for exhaustive ComboZones
    • Completely removed the memory churn from exhaustive ComboZones. I wouldn't say it is 100% the same performance as regular ComboZones at this point, but it's closer than it's ever been. Basically, if you even think you need exhaustiveness, just use it, because you'll have a hard time finding any practical performance difference.
  • New debugBlip option
    • This option, when set to true, will add a blip at the center of the zone. If set on a ComboZone, it will set debugBlip to true on every zone inside of or added to the ComboZone. This is useful for seeing the dispersion and number of zones you have.
  • New ensureMetatable helper function
    • If you return a zone from an export, you probably will have found an issue. The data of the zone was transferred, but not the methods. This is because zones use metatables, which are not transferred by exports. To solve this, I added the PolyZone.ensureMetatable function. See here for more info.

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