WebGPU -> WebGL2 Fallback
Zero npm/WASM runtime dependencies; enables shader-f16 compute when exposed and degrades cleanly to RGBA16F + MRT fragment shaders.
Zero-dependency WebGPU Compute & WebGL2 RGBA16F runtimes paired with GameFI optical-flow interpolation and GameSR 2x super-resolution.
What FrameFlow Delivers
f16 / f32) and WebGL2 (RGBA16F + MRT) with 69–72 dB PSNR (GameFI) and 62–63 dB PSNR (GameSR-2x) parity against PyTorch in headless Edge 157 (Intel Xe-LPG).GPUDevice / WebGL2RenderingContext, 2×/3× and arbitrary t ∈ (0, 1) phase synthesis, FrameFlowPacer, and chainable GameFI + GameSR-2x execution — see API & Component Reference.Explicit Non-Goals & Hard Limits
.bin / .pt artifacts and training footage stay gitignored and publish via GitHub Releases / CNB OCI with provenance and checksums.SrModelConfig rejects non-2× scales and live loops never invoke blocking mapAsync / readRgba().import { probeCapabilities, createFrameFlow, loadModelFromUrl } from 'frameflow/runtime';
const caps = await probeCapabilities();
if (caps.supported) {
const engine = await createFrameFlow({ backend: 'auto' });
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);
}Quick Navigation by Goal