Skip to content

1681-engine / index / bootWatch

Function: bootWatch() ​

ts
function bootWatch(
   ms, 
   onStuck, 
   now?
): BootWatch;

Defined in: src/diagnostics/bootWatch.ts:23

Says when a start has not finished ms after it began, naming the step it stood on. A world that never got built otherwise leaves the player looking at a loading line forever while the rest of the page goes on under it; named steps turn "it hangs" into "it hangs loading textures".

Parameters ​

ParameterType
msnumber
onStuck(stall) => void
now() => number

Returns ​

BootWatch

Released under the MIT License.