Construct a THREE.WebGLRenderer from a WebGL2 context obtained
via canvas.getContext('webgl2', config.webgl.context).
Outside debug mode renderer.debug.checkShaderErrors is turned OFF. With it
on, three reads getProgramInfoLog and both shader logs straight after every
link — a synchronous GPU round trip that defeats the driver's parallel
compile and measured 15-91 ms of main-thread stall on a cold start. A broken
shader still surfaces without it: the browser logs the failed link as a WebGL
warning and the draw is skipped.
Returns the renderer plus a RendererCapabilities snapshot. The
caller wires materialManager / HDR / clear color / initial resize.
Construct a
THREE.WebGLRendererfrom a WebGL2 context obtained viacanvas.getContext('webgl2', config.webgl.context).Outside debug mode
renderer.debug.checkShaderErrorsis turned OFF. With it on, three readsgetProgramInfoLogand both shader logs straight after every link — a synchronous GPU round trip that defeats the driver's parallel compile and measured 15-91 ms of main-thread stall on a cold start. A broken shader still surfaces without it: the browser logs the failed link as a WebGL warning and the draw is skipped.Returns the renderer plus a
RendererCapabilitiessnapshot. The caller wires materialManager / HDR / clear color / initial resize.