-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call Utils.get_units_in_range() less frequently Old: it was called on every Tower.update(), so 30 times per second New: it gets called only before tower attacks, so ~1 time per second Add validity check to get_current_target() since target list is now \ updated less frequently and Autocast may request a target while \ target list contains an invalid unit This change improves performance for bonus waves
- Loading branch information
Showing
1 changed file
with
38 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters