Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/ChartGPU/ChartGPU
/ getFPS
Method
getFPS
examples/worker-streaming/main.ts:94–98 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
92
}
93
94
getFPS(): number {
95
if
(this.frames.length < 2)
return
0;
96
const
delta = this.frames[this.frames.length - 1] - this.frames[0];
97
return
(this.frames.length - 1) / (delta / 1000);
98
}
99
}
100
101
/**
Callers
1
streamFrame
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected