The browser's scene host for one canvas: a WebGLRenderer drawing into it, the window's animation frames, and the canvas's layout size with the device pixel ratio.
Each createRenderer call makes a new renderer on the same canvas, which reuses the canvas's context, so a mount after a dispose draws; the mount disposes each renderer without losing the context. A canvas that has no layout size yet reports zero, and the mount skips drawing until it has one.
The browser's scene host for one canvas: a
WebGLRendererdrawing into it, the window's animation frames, and the canvas's layout size with the device pixel ratio.Each
createRenderercall makes a new renderer on the same canvas, which reuses the canvas's context, so a mount after a dispose draws; the mount disposes each renderer without losing the context. A canvas that has no layout size yet reports zero, and the mount skips drawing until it has one.