Skip to content

1681-engine / index / noteContextLoss

Function: noteContextLoss() ​

ts
function noteContextLoss(
   earlier, 
   now, 
   hidden?, 
   policy?
): ContextLossVerdict;

Defined in: src/diagnostics/contextLoss.ts:28

One more context loss at now, given the earlier ones. A loss while the page is hidden is the system taking the GPU back, not the GPU failing, so it is not counted against it.

Parameters ​

ParameterTypeDefault value
earlierreadonly number[]undefined
nownumberundefined
hiddenbooleanfalse
policyContextLossPolicy{}

Returns ​

ContextLossVerdict

Released under the MIT License.