Permalink
Browse files

Add optimization TODO

  • Loading branch information...
izb committed Aug 21, 2013
1 parent 4959d77 commit befea625d35e9594f1ad56a80ae1052ff2893573
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/ai/proximity-tracker.js
@@ -159,6 +159,7 @@ define(function() {
s = cell.sprites[j];
dx = x-s.x;
dy = (y-s.y)*2;
+ /* TODO: Sprites should declare a working area property to avoid deoptimization here. */
s.tmpDist2=(dx*dx+dy*dy);
}
}

0 comments on commit befea62

Please sign in to comment.