MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / requestFrame

Method requestFrame

packages/bench/src/backends.ts:117–123  ·  view source on GitHub ↗
(drawlist: Uint8Array)

Source from the content-addressed store, hash-verified

115 }
116
117 async requestFrame(drawlist: Uint8Array): Promise<void> {
118 this.frameCount++;
119 this.totalFrameBytes += drawlist.byteLength;
120 this.frameTimes.push(performance.now());
121 const resolver = this.frameResolvers.shift();
122 if (resolver) resolver();
123 }
124
125 /**
126 * Returns a promise that resolves on the next requestFrame call.

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected