Skip to content

Commit

Permalink
Add optimization TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
izb committed Aug 21, 2013
1 parent 4959d77 commit befea62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ai/proximity-tracker.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ define(function() {
s = cell.sprites[j]; s = cell.sprites[j];
dx = x-s.x; dx = x-s.x;
dy = (y-s.y)*2; dy = (y-s.y)*2;
/* TODO: Sprites should declare a working area property to avoid deoptimization here. */
s.tmpDist2=(dx*dx+dy*dy); s.tmpDist2=(dx*dx+dy*dy);
} }
} }
Expand Down

0 comments on commit befea62

Please sign in to comment.