Spaces:
Running
Running
Commit ·
ed09e5e
1
Parent(s): 9ddf53b
clear
Browse files2993 unmodified lines29942995299629972998299930003001300259 unmodified lines3062306330643062306530663067306830693070307130722993 unmodified lines },
async tick() { if (!this.running) return; const STEPS_PER_TICK = 10; for (let _s = 0; _s < STEPS_PER_TICK; _s++) { if (!this.running) return; var done1 = this.fixed.step >= this.horizon; var done2 = this.ai.step >= this.horizon;59 unmodified lines if (this.fixed.step >= this.horizon && this.ai.step >= this.horizon) { this.finish(); } else if (this.running) { setTimeout(() => this.tick(), 0); if (_s === STEPS_PER_TICK - 1) setTimeout(() => this.tick(), 0); } this.updateUI(); } // end for loop if (this.running) setTimeout(() => this.tick(), 0); },
finish() {app/viz/dashboard.py+7-1