Skip to content

1681-engine / index / looksThrottled

Function: looksThrottled() ​

ts
function looksThrottled(summary, medianLimitMs?): boolean;

Defined in: src/diagnostics/frameStats.ts:53

A window the browser throttled: one covered by another window is not hidden, but runs at about a frame a second, and a second copy of a game parked behind the first read as its heaviest scene. Nothing really played runs with its median frame half a second long.

Parameters ​

ParameterTypeDefault value
summaryFrameSummaryundefined
medianLimitMsnumber500

Returns ​

boolean

Released under the MIT License.