Skip to content

armgit / kiln

Public Imported from GitHub
0

Build and revise procedural 3D assets with your coding agent. Local MCP server, CLI and TypeScript engine with rendered review, editable source and GLB export.

5.0 KB
Raw Blame

Troy startup phase comparisons, 5 October 2026

The startup candidates remain optional; the default is reference. A direct offscreen draw can omit the separate main-target compile, while retaining production scene/light identity, original meshes, actual shadow/color passes, owned target cleanup and awaited WebGPU queue completion. The narrower handoffDraw candidate samples production time 260 with current camera/culling and actual active owners, draws offscreen, then restores time zero in finally. It does not force every hidden GPU/CPU representation into visibility. Phase selection belongs to Troy, not standalone asset requirements.

All 211 scene tests pass, including red/green admission, error restoration, target/resource lifetime and asynchronous completion checks. Stage-16 has 517 browser files and 1,263 exact Three dependency files, matching locally and on the hub. Saved assets, bank payloads and the paired shield work are unchanged. Local WebGPU candidate loads, returns to the starting scene and records no errors/warnings.

Maintained optional scene guidance now distinguishes API readiness from first visible/composited readiness and requires actual-phase owner/clock restoration evidence. Skill validation passes. Offline package bytes match the maintained reference; installed-runtime fresh setup and managed upgrade verify four copies. A customized reference rejects upgrade without changing any files, and owner notes survive the subsequent managed upgrade. These are fixtures; existing author workspaces were not rewritten. Proof and the local package are retained under scene/evidence/direct-startup-passes-01/skills.

Stage-15 used the same source and runner for three fresh WebGPU browser processes. Reference readiness was 12457 ms. Direct scoped drawing took 22044 ms, 9587 ms extra; scoped precompile plus drawing took 25989 ms, 13532 ms extra. Both removed the tested first handoff stall and preserved both fixed images exactly, but loading remained expensive. This controlled comparison establishes the narrower direct path's measured cost, not a general promise that removing compileAsync always helps.

Stage-16 then compared actual-phase drawing with its own same-source reference on both backends. Each mode completed two natural twenty-second handoff windows, source checks and teardown without errors, warnings or focus loss. Fixed actor/camera/clock states and two images per backend match exactly. Time-zero actor, hero, ship, camera and count state also matches, with zero changed pixels after restoration.

Candidate Reference ready ms Candidate ready ms Extra loading ms Reference first max ms Candidate first max ms
webgpu targeted handoff 12840 21176 8336 3066.2 25.1
webgl2 targeted handoff 16644 44849 28205 50.0 83.3

WebGL2 had no multi-second reference handoff stall to solve; the candidate adds 28,205 ms before the ready marker and increases the first maximum from 50 to 83.3 ms. It is unsuitable for the fallback. WebGPU avoids the 3066.2 ms handoff interval but adds 8,336 ms to that marker. Neither candidate is adopted. Isolate pipeline preparation and first-visible/composited readiness before selecting another default strategy.

These are scoped RAF cadence and API-readiness observations on the quiet GTX1660Ti Max-Q hub, hardware browser 1440x900 with balanced water. readyMs ends at the application ready marker; the candidate includes its awaited offscreen GPU queue completion, while the reference marker does not prove first composited frame or an empty queue. Record first visible scene readiness separately before making a user loading-time acceptance claim. Browser processes are fresh; driver/network cache coldness is not established. Sampling has a normal 50 ms simulation-delta clamp, so stalled reference windows advance less scene time. Raw intervals and endpoints remain preserved. The narrower phase depends on the initial camera and culling; do not adopt it for every entry viewpoint or claim all future shader variants are ready. Other initial views, paired/playable/exploration first use, late idle/walking representations, fallback, startup cancellation and complete-workload/device targets remain before adoption.

The instrumented first-use profile is retained separately in paired-first-use-profile-01. Its runner failed on one -1 microsecond CPU timestamp delta after recording the natural duel. A separate diagnostic sorts cumulative sample timestamps, retaining total duration and the untouched raw profile. It does not turn that failed run into a qualification pass or attribute the first-use stall to GPU execution.

The full goal remains active: remaining startup/frame/shadow/device qualification; combat/bot/camera/input and relaxed carry; unrelated reusable workflows/maintained packaged skills; final asset/source/project/site reproducibility and owner acceptance. This computer owns source and development; the hub only tests exact candidates. No commit, push, deployment or publication occurred.