MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / addFrame

Method addFrame

examples/worker-rendering/main.ts:85–91  ·  view source on GitHub ↗
(frameTime: number)

Source from the content-addressed store, hash-verified

83 }
84
85 addFrame(frameTime: number): void {
86 this.frameTimes.push(frameTime);
87 if (this.frameTimes.length > FRAME_BUFFER_SIZE) {
88 this.frameTimes.shift();
89 }
90 this.render();
91 }
92
93 private render(): void {
94 const { ctx, canvas, frameTimes } = this;

Callers 1

updateMetricsDisplayFunction · 0.80

Calls 1

renderMethod · 0.95

Tested by

no test coverage detected