← Back to Pull requests

3D miniatures test WebGL once and detect KTX2 support only before a model loads #2347

Open
unknown opened this pull request with 125 lines diff across 1 files
View on GitHub
unknown unknown commented on Nov 06, 2026 03:35 UTC
Author

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() in void-live-deploy/skills/scene3d.js keeps its result in a module variable and calls WEBGL_lose_context on the test context. engine() sets up the KTX2 loader without detectSupport; loadGLTF() runs detectSupport once, the first time a model loads. The other callers of webglOk() (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.mjs passes 5/5.

---
_Generated by Claude Code_

Diff: 125 lines (+93 / -32) across 1 files Reviewer: github-actions[bot] Review duration: 6m
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
0.37
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
42%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Assignees
Unassigned
Labels
risk: low confidence: 43.0% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 36.9% (MEDIUM) · Higher = larger blast radius
36.9%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 43.0% · Lower = rushed or shallow review
43.0%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 21.1% · Safe to merge
21.1%