function updateManySetup() { var numAdditions = 1e4; for (var i = 0; i < numAdditions; ++i) { var currentTween = new TWEEN.Tween({a: 0.0}); currentTween.to({a: 1.0}, 1.0); currentTween.start(0.0); } } function updateMany() { TWEEN.update(0.5); }