MCPcopy Create free account
hub / github.com/Comfy-Org/litegraph.js / on_frame

Method on_frame

src/LGraph.ts:402–409  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

400 window.requestAnimationFrame
401 ) {
402 const on_frame = () => {
403 if (this.execution_timer_id != -1) return
404
405 window.requestAnimationFrame(on_frame)
406 this.onBeforeStep?.()
407 this.runStep(1, !this.catch_errors)
408 this.onAfterStep?.()
409 }
410 this.execution_timer_id = -1
411 on_frame()
412 } else {

Callers

nothing calls this directly

Calls 1

runStepMethod · 0.95

Tested by

no test coverage detected