by Retr0spectrum · 11y ago · 0 comments
var loop = function() {
for (var i=0; i<1000; i++) {
// do stuff
}
setTimeout(loop, 0);
}
It might not be as fast in some cases, but it works for me.If you mean having the library code "learn" the optimal chunk/delay for a given run, that's possible too, but I'd have to wonder about alternative solutions at that point.