Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize get_objects_inside_radius calls (#9671)
* Optimize getObjectsInsideRadius calls our previous implementation calls the ActiveObjectMgr to return ids and then lookup those ids in the same map and test each object Instead now we call the global map to return the pointers directly and we ask filtering when building the list using lamba. This drop double looping over ranges of active objects (and then filtered one) and drop x lookups on the map regarding the first call results
- Loading branch information
Showing with 55 additions and 39 deletions.