Thomas Vachuska
Committed by Brian O'Connor

Modified d3.js to use alternate force.tick() invocation for improved speed.

Change-Id: I6d9e926817c13b5ef058e66ec1af509e22f1dea4
...@@ -6215,7 +6215,12 @@ ...@@ -6215,7 +6215,12 @@
6215 type: "start", 6215 type: "start",
6216 alpha: alpha = x 6216 alpha: alpha = x
6217 }); 6217 });
6218 - d3.timer(force.tick); 6218 + //d3.timer(force.tick);
6219 + setTimeout(function tick(){
6220 + force.tick();
6221 + if(alpha >= .005);
6222 + setTimeout(tick, 0);
6223 + }, 0);
6219 } 6224 }
6220 return force; 6225 return force;
6221 }; 6226 };
......