Quote:
Originally Posted by shavit
pretty damn cool
is performance any good?
|
Yeah it shouldn't have any notable performance impact. By checking if the point is in the "box" the polygon is, it helps to reduce usage greatly. It won't be doing too much checking.
You can also check if player moved from his last position before checking all the polygons again, this will reduce checking for AFK players.
To put this into perspective; Surf server, ~40people online, multiple polygons, checking 4 points(edges) of players and no notable decrease in performance or any notable increase in CPU usage. It should be perfectly fine.
__________________