MCPcopy
hub / github.com/midrender/revideo / update

Method update

packages/core/src/threading/Thread.ts:152–158  ·  view source on GitHub ↗

* Prepare the thread for the next update cycle. * * @param dt - The delta time of the next cycle.

(dt: number)

Source from the content-addressed store, hash-verified

150 * @param dt - The delta time of the next cycle.
151 */
152 public update(dt: number) {
153 if (!this.paused) {
154 this.time(this.time() + dt);
155 this.fixedTime += dt;
156 }
157 this.children = this.children.filter(child => !child.canceled);
158 }
159
160 public spawn(
161 child: ThreadGenerator | (() => ThreadGenerator),

Callers 2

nextFunction · 0.45
threadsFunction · 0.45

Calls 1

timeMethod · 0.80

Tested by

no test coverage detected