3D miniatures test WebGL once and detect KTX2 support only before a model loads #2347
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.37) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 125 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #2347"
general
weight: 0.35
github-actions[bot]
Before: a visitor ask such as "what time is it" could block the page for 7 s or more on a software GPU. Each 3D miniature made a new WebGL context only to test for WebGL, and each engine start ran KTX2 support detection even when no model loaded.
After: WebGL is tested once per page, and the test context is given back at once. KTX2 support is detected only before the first glTF model loads.
How:
webglOk()invoid-live-deploy/skills/scene3d.jskeeps its result in a module variable and callsWEBGL_lose_contexton the test context.engine()sets up the KTX2 loader withoutdetectSupport;loadGLTF()runsdetectSupportonce, the first time a model loads. The other callers ofwebglOk()(draw.js, mountFresh) get the same result as before.The void-seal WebP encode (about 1.3 s) is not changed: its output also feeds card share pictures.
Tests:
node --test tools/scene3d.test.mjspasses 5/5.---
_Generated by Claude Code_