Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We can optimize a significant portion of LookClose's findNewTarget me…
…thod with some changes: (#2103) -Build the list of all potential Players and THEN sort by distance. A good chunk of the method's time was spend sorting things it didn't need to. -Second, reorder the player checks for best performance, where getNPC() is the cheapest check and isPluginVanished is the most expensive check. In somewhat minimal testing, these changes almost dropped findNewTarget off of my profiling entirely
- Loading branch information