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
202 stars 193 forks source link

Debug wall drawing optimized #68

Closed vietgamingnetwork closed 2 years ago

vietgamingnetwork commented 2 years ago

Dear PolyZone dev team's, I have some ideas bellow:

mkafrin commented 2 years ago

Thank you for the suggestions, but the debug drawing should only be used for debugging and therefore not a lot of time was spent on optimizing them. Adding additional code and options for something that doesn't have any effect outside of local testing is not something I want to do.

It would take drawing a lot of zones to actually heavily effect FPS (where it would matter for testing purposes), but if you want to optimize it yourself, the draw method on zones is freely available to be run manually rather than using the built-in debug options.