Add AC/BC RTCP programs and 3D machine manager

This commit is contained in:
2026-09-20 12:31:12 +08:00
parent 1c1e5f9672
commit 8aab531b02
363 changed files with 53213 additions and 58 deletions

View File

@@ -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;
}