Roundabout Berkeley — Three.js → .ic Auto-Compiler & Benchmark

Source Provenance: Extracted directly from kabirdos/roundabout (branch claude/project-thread-0q75df: src/studio/model.ts, scene.ts, furniture/staging.ts, pieces.ts, walk.ts, walkthrough/tour.ts, context.ts). Switch between the Downstairs Interior (Furnished) with eye-level Guided Tour and the 3-Building Exterior Site: BEFORE renders the Three.js scene graph; AFTER runs threejs-to-ic.mjs to auto-compile it into a 1-draw-call WebGL2 .ic program.
Live Viewport -- FPS (rAF)
Loading Three.js scene & running threejs-to-ic.mjs...
BEFORE: Three.js Scene Graph (200 Mesh draw calls)
AFTER: Auto-Compiled .ic WebGL2 (1 drawElementsInstanced)
EYE-LEVEL WALKTHROUGH (1.63m, 67° FOV) • Drag to look • WASD / Arrows to walk • 1 draw call
Before (Three.js) vs After (.ic) Roundabout 200-mesh scene
Bundle Size Transparency
ArtifactRawGzipRole
ic-webgl2-runtime.mjs11.6 KB~4.1 KBAOT WebGL2 runtime
threejs-to-ic.mjs~9.4 KB~3.2 KBAuto Three.js → .ic compiler
three@0.170 + OrbitControls~680 KB~175 KBThree.js library
engine/index.mjs (IDE)3.11 MB738 KBIn-browser .ic parser
1. Three.js Source (Editable)
2. Auto-Compiled .ic Output -

    
3. Auto-Compiled GLSL ES 3.00 gl_InstanceID