WarmHud
WarmHud(
props):Element|null
Draws its children under the loading screen, out of sight, so the
browser builds the GPU programs of their effects, such as a blurred pane
or a banner’s entrance, before play rather than in the frames that first
show them. From the start scene’s mount, the engine draws its own
effects first, then adds each WarmHud in the order they mounted, a
frame apart, every animation in it that moves a blur’s or a shadow’s
radius stepped through warmSteps moments of its run on its turn; so
the order in the tree is the priority. The
warm-up stops at Game’s warmUpMilliseconds: a WarmHud it has not
drawn by then builds its programs on first use in play, and the
console says how many it dropped. Holds a copy of what the HUD shows
later, such as a wave’s banner: what a Hud holds at load draws out of
sight already. From wherever it sits, as a Hud.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
props |
{ } |
Returns
Section titled “Returns”Element | null