From eab8cd3c43f33c72d2da33e11a8fbe4b72c619b5 Mon Sep 17 00:00:00 2001 From: Chris Lorenzo Date: Wed, 1 Jul 2026 20:27:47 -0400 Subject: [PATCH] perf(webgl): drop unused stencil buffer from context attributes No code path uses the stencil buffer (no stencilFunc/stencilOp/STENCIL_TEST; clipping is scissor-based and clear() only touches COLOR_BUFFER_BIT), but requesting it costs tile memory bandwidth on every flush on tile-based GPUs (Mali 400-class targets). Co-Authored-By: Claude Fable 5 --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 714ef6e..4d78e4d 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -9,7 +9,7 @@ export function createWebGLContext( alpha: true, antialias: false, depth: false, - stencil: true, + stencil: false, desynchronized: false, // Disabled because it prevents Visual Regression Tests from working // failIfMajorPerformanceCaveat: true,