Merge remote-tracking branch 'origin/withConsoleLog'

This commit is contained in:
Pitchaya Boonsarngsuk
2018-02-06 13:10:17 +00:00
2 changed files with 4 additions and 0 deletions

View File

@@ -113,11 +113,14 @@ export default function (sim, forceS, forceF) {
}
event.call("startInterp");
let p1 = performance.now();
if (NUM_PIVOTS>=1) {
interpolationPivots(sample, remainder, NUM_PIVOTS, interpDistanceFn, INTERP_FINE_ITS);
} else {
interpBruteForce(sample, remainder, interpDistanceFn, INTERP_FINE_ITS);
}
let p2 = performance.now();
console.log("Interpolation time: " + (p2 - p1));
event.call("fullTick");
alreadyRanIterations = 0;

View File

@@ -66,6 +66,7 @@ export default function () {
if(stableVeloHandler!==null && velocityDiff<stableVelocity){
stableVeloHandler();
}
else console.log(velocityDiff);
}
}