End-to-End Execution Walkthrough
Launching a title in PVSSPW progresses through five gated stages:
- Exclusive Lock & Ingest (
web/shell.js,web/library.js,web/files.js):storageLockacquires non-blockingpvsspw-libraryWeb Lock before title install/rePatch; save restores validate ZIP schemas inside/gamedata-worker.jsbefore user confirmation. - Platform & Graphics Readiness (
web/platform.js,web/graphics.js):checkPlatform()enforcesisSecureContext, JSPI,OffscreenCanvas, and OPFS sync handles (fatalon failure), whilefindGraphics()probescore->compatibility->fallbackadapters in a worker. - SMP Pool & Worker Handoff (
web/thread-policy.js,web/engine.js):chooseThreadPolicy()setsVITASLOP_SMP_WORKERS, and patchedwindow.WorkerinjectsuiGpu,uiMode,uiPresent,uiFrameflow, anduiSrinto/worker.js. - Zero-Copy Ring vs Software Fallback (
web/frameflow-worker.js,web/engine.js): Hardware runs intercept swapchain textures intoframeflow-ring-0..2and suppressfsr1whenGameSRis active; software mode forces AI presets off and falls back topvsspw-software-frame2D canvas drawing. - Submit Telemetry & Clean Teardown (
bench/worker-probe.js,web/engine.js): Only distinct command buffers rendering to the visible canvas emitpvsspw-submit, and exit awaits worker termination (OPFSrelease) cleanly.
Verify unit rules with node --test tests/*.test.mjs, or inspect the Code Map.