Make the bulk tester more aggressive (any more shows no further time gain)

This commit is contained in:
Eevee (Evelyn Woods) 2020-12-26 02:02:24 -07:00
parent 86bf90ee89
commit 09c1976608

View File

@ -2504,14 +2504,13 @@ class PackTestDialog extends DialogOverlay {
return; return;
} }
// Don't run for more than 50ms at a time, to avoid janking the browser... // Don't run for more than 100ms at a time, to avoid janking the browser...
// TOO much. I mean, we still want it to reflow the stuff we've added, but // TOO much. I mean, we still want it to reflow the stuff we've added, but
// we also want to be pretty aggressive so this finishes quickly // we also want to be pretty aggressive so this finishes quickly
let now = performance.now(); let now = performance.now();
if (now - last_pause > 50) { if (now - last_pause > 100) {
// TODO measure the impact this has await util.sleep(4);
last_pause = now; last_pause = now;
await util.sleep(5);
} }
} }
} }