Skip to content

FrameFlowCross-Browser Neural Frame Interpolation & SR Suite

Zero-dependency WebGPU Compute & WebGL2 RGBA16F runtimes paired with GameFI optical-flow interpolation and GameSR 2x super-resolution.

Capabilities & Explicit Boundaries ​

What FrameFlow Delivers

  • Runs pure-ES WebGPU Compute (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).
  • Supports shared external 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

  • Zero binary weights or non-commercial data in Git: .bin / .pt artifacts and training footage stay gitignored and publish via GitHub Releases / CNB OCI with provenance and checksums.
  • No CPU / WASM fallback: Devices lacking WebGPU and float/half-float FBOs report unsupported cleanly instead of starving emulator CPUs.
  • Fixed 2× GameSR & zero hot-path readbacks: SrModelConfig rejects non-2× scales and live loops never invoke blocking mapAsync / readRgba().

Architecture Overview ​

FrameFlow Export, Dual-Backend Runtime & Host Zero-Copy Architecture (click nodes / pan / zoom)
Open Fullscreen ↗

Minimal Usage ​

js
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);
}

Documentation Guide ​

Quick Navigation by Goal