OptionaldelayWait before the second attempt. Injected for tests; defaults to setTimeout.
OptionalretryPause between the two attempts (ms).
The device the CURRENT renderer draws with; undefined on the WebGL2 bridge.
Build a renderer on a fresh native device and rewire the host to it. Resolves false (or rejects) when no native device could be obtained.
The device was lost without an explicit destroy; recovery starts right after.
A new renderer is live and the scene has been rewired to it.
Host side-effects, passed once at construction.