WebGPU -> WebGL2 Automatic Fallback
Pure ES modules with zero WASM or npm runtime deps; enables shader-f16 when available and falls back to RGBA16F MRT fragment shaders.
Zero-dependency WebGPU & WebGL2 runtimes paired with GameFI optical-flow interpolation and GameSR 2x super-resolution for web emulators.
Delivered Capabilities
GameFI) and 62–63 dB PSNR (GameSR-2x) across WebGPU and WebGL2 in headless Edge 157 (Intel Xe-LPG) verification.2x (t=0.5), 3x (t=1/3, 2/3), arbitrary phase t ∈ (0, 1), synthetic static HUD zero-flow training, and chained GameFI + GameSR pipelines under one unified format_version = 1 artifact contract.Explicit Non-Goals & Boundaries
.bin / .pt artifacts and training media stay gitignored and are distributed via GitHub Releases (weights-v0.1.0, sr-weights-v0.1.0) or CNB OCI.GameSR-2x targets scale = 2 only, and hot-path pacing never invokes synchronous mapAsync readbacks.import { createFrameFlow, loadModelFromUrl } from 'frameflow/runtime';
const engine = await createFrameFlow({ backend: 'auto' }); // Or pass { device } / { gl }
const fiModel = await loadModelFromUrl(engine, '/assets/models/gamefi-lite/');
const session = engine.createSession(fiModel, {
width: 960,
height: 544,
internal: [480, 288],
k: 1,
stillGuard: true,
});
session.pushFrame(0, frameACanvas);
session.pushFrame(1, frameBCanvas);
session.pair(0, 1);
session.mid(0.5, 0);