mkafrin / PolyZone

PolyZone is a FiveM mod to define zones of different shapes and test whether a point is inside or outside of the zone
MIT License
204 stars 191 forks source link

ComboZone: Optimize onPointInOutExhaustive #27

Closed mkafrin closed 4 years ago

mkafrin commented 4 years ago

More efficient way of utilizing copying/clearing of tables that avoids the overhead from it, or at least makes it equally as expensive as the GC overhead from constantly making new tables. This also avoids the memory churn with onPointInOutExhaustive as well.