Add AC/BC RTCP programs and 3D machine manager
This commit is contained in:
@@ -54,9 +54,18 @@ export class SimScheduler {
|
||||
}
|
||||
for (let index = 0; index < cycles; index += 1) {
|
||||
const nextTick = this.tick + 1;
|
||||
for (const phase of SCHEDULER_PHASES) {
|
||||
this.phase_trace = [...SCHEDULER_PHASES];
|
||||
if (typeof callbacks[phase] === "function") callbacks[phase](nextTick);
|
||||
try {
|
||||
for (const phase of SCHEDULER_PHASES) {
|
||||
this.phase_trace = [...SCHEDULER_PHASES];
|
||||
if (typeof callbacks[phase] === "function") callbacks[phase](nextTick);
|
||||
}
|
||||
} catch (error) {
|
||||
// Callbacks may already have advanced motion inside this tick. Do
|
||||
// not replay it or retain the native scheduler's unexecuted future.
|
||||
this.tick = nextTick;
|
||||
this.last_cycles = index + 1;
|
||||
this.restore(this.export());
|
||||
throw error;
|
||||
}
|
||||
this.tick = nextTick;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user