{
 "id": "fidelityfx-super-resolution",
 "title": "AMD FidelityFX Super Resolution",
 "aliases": [
  "FSR"
 ],
 "domain": "post",
 "subdomain": "upscaling",
 "stage": "post",
 "realtime": "realtime",
 "platforms": [
  "desktop-gpu",
  "mobile-gpu",
  "unity",
  "unreal",
  "godot"
 ],
 "year_introduced": 2021,
 "inputs": [
  "ldr-image",
  "depth",
  "gbuffer"
 ],
 "outputs": [
  "ldr-image"
 ],
 "style": "both",
 "dynamic": "dynamic",
 "summary": "AMD's open upscaler family. FSR 1 is a spatial edge-adaptive upscale plus sharpen; FSR 2 and later reconstruct from jittered, motion-vector-reprojected frames like TAA and run on any GPU.",
 "how_it_works": "FSR 1 (EASU then RCAS) is purely spatial: EASU looks at a 12-tap neighbourhood, estimates edge direction and length from gradient analysis, and applies a direction-stretched Lanczos-like kernel; RCAS then sharpens with a contrast-adaptive filter. It operates on tonemapped LDR input.\n\nFSR 2 and 3 are temporal. The renderer supplies low-resolution colour, depth, motion vectors, exposure and jitter offsets. The pass reprojects accumulated high-resolution history, validates it against depth and luminance, reconstructs thin features, locks sub-pixel detail and writes an output at display resolution. Later versions add frame generation. All variants are shaders with no vendor-specific hardware requirement.",
 "when_to_use": "Choose it when you need a vendor-neutral upscaler that runs on consoles, integrated GPUs and mobile, or when you cannot ship an ML runtime.\n\nPrefer `dlss` on RTX hardware when you can accept the proprietary SDK for higher reconstruction quality. Prefer `temporal-anti-aliasing` at native resolution when no upscaling is needed.",
 "cost": {
  "class": "cheap",
  "notes": "FSR 1 is a pair of cheap passes; the temporal versions cost more but are designed to be a net saving versus native rendering. Qualitative."
 },
 "failure_modes": [
  "FSR 1 cannot recover detail absent in the input and amplifies aliasing present in it",
  "Temporal versions ghost on objects lacking motion vectors",
  "Thin wires and particles shimmer or disappear at low scale factors",
  "Wrong jitter, mip bias or exposure inputs cause visible shimmer or brightness pumping"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "gh:gpuopen-effects/fidelityfx-fsr",
   "type": "code",
   "title": "GPUOpen-Effects/FidelityFX-FSR",
   "description": "FidelityFX Super Resolution",
   "authors": [
    "GPUOpen-Effects"
   ],
   "year": 2021,
   "venue": "GitHub",
   "url": "https://github.com/GPUOpen-Effects/FidelityFX-FSR",
   "ids": {
    "repo": "GPUOpen-Effects/FidelityFX-FSR"
   },
   "license": "MIT",
   "extra": {
    "stars": 2197,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2022-05-22T20:25:43Z",
    "language": "C",
    "homepage": null,
    "license_name": "MIT License"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/GPUOpen-Effects/FidelityFX-FSR",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/GPUOpen-Effects/FidelityFX-FSR",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/GPUOpen-Effects/FidelityFX-FSR",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/GPUOpen-Effects/FidelityFX-FSR",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/GPUOpen-Effects/FidelityFX-FSR",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/GPUOpen-Effects/FidelityFX-FSR",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "gpuopeneffects2021gpuopen"
  },
  {
   "role": "implementation",
   "key": "gh:gpuopen-librariesandsdks/fidelityfx-sdk",
   "type": "code",
   "title": "GPUOpen-LibrariesAndSDKs/FidelityFX-SDK",
   "description": "The main repository for the FidelityFX SDK.",
   "authors": [
    "GPUOpen-LibrariesAndSDKs"
   ],
   "year": 2023,
   "venue": "GitHub",
   "url": "https://github.com/GPUOpen-LibrariesAndSDKs/FidelityFX-SDK",
   "ids": {
    "repo": "GPUOpen-LibrariesAndSDKs/FidelityFX-SDK"
   },
   "license": null,
   "extra": {
    "stars": 1899,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2026-10-28T13:18:14Z",
    "language": "C++",
    "homepage": null,
    "license_name": null
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/GPUOpen-LibrariesAndSDKs/FidelityFX-SDK",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/GPUOpen-LibrariesAndSDKs/FidelityFX-SDK",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/GPUOpen-LibrariesAndSDKs/FidelityFX-SDK",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/GPUOpen-LibrariesAndSDKs/FidelityFX-SDK",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/GPUOpen-LibrariesAndSDKs/FidelityFX-SDK",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/GPUOpen-LibrariesAndSDKs/FidelityFX-SDK",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "gpuopenlibrariesandsdks2023gpuopen"
  },
  {
   "role": "tutorial",
   "key": "url:https://gpuopen.com/learn",
   "type": "tutorial",
   "title": "GPUOpen learning resources",
   "authors": [
    "AMD GPUOpen"
   ],
   "year": null,
   "venue": "gpuopen.com",
   "url": "https://gpuopen.com/learn",
   "ids": {},
   "license": null,
   "extra": {
    "http_status": 200,
    "live": true,
    "archive": {
     "url": "http://web.archive.org/web/20261115100641/https://gpuopen.com/learn/",
     "timestamp": "20261115100641"
    },
    "page_title": "Documentation and more",
    "host": "gpuopen.com",
    "title_confirmed_by_page": false,
    "title_unconfirmed": true
   },
   "provenance": {
    "title": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "http",
     "endpoint": "GET https://gpuopen.com/learn → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "http",
     "endpoint": "GET https://gpuopen.com/learn → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 0,
   "__bib": "gpuopengpuopen"
  }
 ],
 "presets": [
  {
   "id": "fidelityfx-super-resolution-live",
   "title": "AMD FidelityFX Super Resolution (FSR) — blurry bilinear upscale (left) vs EASU directional Lanczos + RCAS sharpening (right)",
   "runtime": "glsl-fragment",
   "params": {
    "P_UPSCALE": 2.6,
    "P_RCAS": 0.8,
    "P_EDGE_ANISO": 0.85,
    "P_SPLIT": 0.48
   },
   "basis": "original",
   "license_note": "MIT — written for this index.",
   "code": "const float P_UPSCALE = 2.60; // P Upscale Factor [1.4, 4.5, 0.1]\nconst float P_RCAS = 0.80; // P RCAS Sharpen [0.0, 1.5, 0.05]\nconst float P_EDGE_ANISO = 0.85; // P EASU Anisotropy [0.0, 1.0, 0.05]\nconst float P_SPLIT = 0.48; // P Bilinear / FSR [0.0, 1.0, 0.02]\n\nvec2 rot2(vec2 p, float a) {\n  float c = cos(a);\n  float s = sin(a);\n  return vec2(c * p.x - s * p.y, s * p.x + c * p.y);\n}\n\n// High-contrast crisp synthetic render target (diagonal fins, glossy badge, radial spokes)\nvec3 renderSource(vec2 uv, float t) {\n  vec2 p = rot2(uv, 0.14 * sin(t * 0.55));\n  vec3 bg = mix(vec3(0.07, 0.09, 0.14), vec3(0.16, 0.22, 0.32), smoothstep(-0.5, 0.5, uv.y));\n\n  // Sharp diagonal geometric chevrons & architectural bands\n  float diag = sin((p.x * 18.0 + p.y * 12.0) + 0.4 * sin(t * 0.7));\n  float chevron = smoothstep(-0.08, 0.08, diag);\n  vec3 col = mix(bg, vec3(0.18, 0.34, 0.46), chevron * 0.55);\n\n  // Perspective high-contrast floor tiles\n  if (uv.y < -0.14) {\n    float z = 0.35 / max(-uv.y - 0.10, 0.02);\n    float x = uv.x * z;\n    float chk = mod(floor(x * 2.2) + floor(z * 2.2 - t * 0.8), 2.0);\n    vec3 tile = mix(vec3(0.10, 0.11, 0.14), vec3(0.82, 0.84, 0.88), chk);\n    float rim = step(0.88, fract(x * 2.2)) + step(0.88, fract(z * 2.2 - t * 0.8));\n    tile = mix(tile, vec3(0.95, 0.36, 0.18), clamp(rim, 0.0, 1.0) * 0.55);\n    col = mix(bg, tile, exp(-z * 0.14));\n  }\n\n  // Crisp central emblem sphere with high-contrast radial ring & diagonal blade\n  vec2 sp = uv - vec2(0.0, 0.06);\n  float r = length(sp);\n  if (r < 0.34) {\n    float nz = sqrt(max(0.34 * 0.34 - r * r, 0.0));\n    vec3 n = normalize(vec3(sp, nz));\n    vec3 l = normalize(vec3(0.6 * cos(t * 0.4), 0.7, 0.65));\n    float ang = atan(sp.y, sp.x) + t * 0.35;\n    float spoke = smoothstep(0.02, 0.12, cos(ang * 8.0));\n    float ring = smoothstep(0.015, 0.0, abs(r - 0.24) - 0.012);\n    vec3 alb = mix(vec3(0.88, 0.22, 0.14), vec3(0.96, 0.82, 0.34), spoke);\n    alb = mix(alb, vec3(0.98, 0.98, 1.0), ring);\n    float ndl = max(dot(n, l), 0.0);\n    float spec = pow(max(dot(reflect(-l, n), vec3(0.0, 0.0, 1.0)), 0.0), 36.0);\n    col = alb * (0.20 + 0.92 * ndl) + vec3(1.1) * spec;\n  }\n\n  // Crisp diagonal frame bars on upper corners\n  float bar1 = smoothstep(0.008, 0.001, abs(abs(uv.x) - 0.56 + uv.y * 0.38) - 0.016);\n  col = mix(col, vec3(0.96, 0.97, 1.0), bar1 * 0.9);\n  return col;\n}\n\n// Low-resolution quantized texel fetch (simulating low-res input texture to FSR)\nvec3 fetchLow(vec2 lowTexel, float cell, float t) {\n  vec2 fc = (lowTexel + 0.5) * cell;\n  vec2 uv = (fc - 0.5 * iResolution.xy) / iResolution.y;\n  return renderSource(uv, t);\n}\n\nfloat luma(vec3 c) {\n  return dot(c, vec3(0.299, 0.587, 0.114));\n}\n\n// FSR-style Lanczos-2 polynomial approximation weight\nfloat lanczos2(float d2, float lobe) {\n  float x = clamp(d2, 0.0, 4.0);\n  float w1 = (0.4 * x - 1.0);\n  float w2 = (0.25 * x - 1.0);\n  return (w1 * w1 - 0.16) * (w2 * w2) * mix(1.0, 1.15, lobe);\n}\n\nvec3 evalEASU(vec2 fragCoord, float cell, float aniso, float t) {\n  vec2 pos = fragCoord / cell - 0.5;\n  vec2 base = floor(pos);\n  vec2 f = pos - base;\n\n  // Fetch 4 central + cross neighbors for gradient direction & edge length estimation\n  vec3 c00 = fetchLow(base + vec2(0.0, 0.0), cell, t);\n  vec3 c10 = fetchLow(base + vec2(1.0, 0.0), cell, t);\n  vec3 c01 = fetchLow(base + vec2(0.0, 1.0), cell, t);\n  vec3 c11 = fetchLow(base + vec2(1.0, 1.0), cell, t);\n\n  vec3 cm0 = fetchLow(base + vec2(-1.0, 0.0), cell, t);\n  vec3 c20 = fetchLow(base + vec2(2.0, 0.0), cell, t);\n  vec3 c0m = fetchLow(base + vec2(0.0, -1.0), cell, t);\n  vec3 c02 = fetchLow(base + vec2(0.0, 2.0), cell, t);\n  vec3 c1m = fetchLow(base + vec2(1.0, -1.0), cell, t);\n  vec3 c12 = fetchLow(base + vec2(1.0, 2.0), cell, t);\n  vec3 cm1 = fetchLow(base + vec2(-1.0, 1.0), cell, t);\n  vec3 c21 = fetchLow(base + vec2(2.0, 1.0), cell, t);\n\n  // Estimate dominant local edge direction from luminance gradients\n  float l00 = luma(c00), l10 = luma(c10), l01 = luma(c01), l11 = luma(c11);\n  vec2 grad = vec2((l10 - l00) + (l11 - l01), (l01 - l00) + (l11 - l10));\n  float gLen = length(grad);\n  vec2 dir = (gLen > 1e-4) ? (grad / gLen) : vec2(1.0, 0.0);\n  vec2 tangent = vec2(-dir.y, dir.x);\n  float stretch = 1.0 + aniso * smoothstep(0.04, 0.35, gLen) * 1.35;\n\n  // 12-tap EASU elliptical Lanczos accumulation\n  vec3 acc = vec3(0.0);\n  float wSum = 0.0;\n  vec2 offs[12];\n  vec3 cols[12];\n  offs[0] = vec2(0.0, 0.0); cols[0] = c00;\n  offs[1] = vec2(1.0, 0.0); cols[1] = c10;\n  offs[2] = vec2(0.0, 1.0); cols[2] = c01;\n  offs[3] = vec2(1.0, 1.0); cols[3] = c11;\n  offs[4] = vec2(-1.0, 0.0); cols[4] = cm0;\n  offs[5] = vec2(2.0, 0.0); cols[5] = c20;\n  offs[6] = vec2(0.0, -1.0); cols[6] = c0m;\n  offs[7] = vec2(0.0, 2.0); cols[7] = c02;\n  offs[8] = vec2(1.0, -1.0); cols[8] = c1m;\n  offs[9] = vec2(1.0, 2.0); cols[9] = c12;\n  offs[10] = vec2(-1.0, 1.0); cols[10] = cm1;\n  offs[11] = vec2(2.0, 1.0); cols[11] = c21;\n\n  for (int i = 0; i < 12; i++) {\n    vec2 d = offs[i] - f;\n    float along = dot(d, tangent) / stretch;\n    float across = dot(d, dir) * mix(1.0, 1.35, aniso * smoothstep(0.04, 0.35, gLen));\n    float d2 = along * along + across * across;\n    float w = lanczos2(d2, aniso);\n    acc += cols[i] * w;\n    wSum += w;\n  }\n\n  vec3 res = acc / max(wSum, 1e-4);\n  // Anti-ringing clamp to inner 2x2 neighborhood min/max\n  vec3 lo = min(min(c00, c10), min(c01, c11));\n  vec3 hi = max(max(c00, c10), max(c01, c11));\n  return clamp(res, lo, hi);\n}\n\nvec3 aces(vec3 x) {\n  x = max(x, 0.0);\n  return (x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14);\n}\n\nvoid mainImage(out vec4 fragColor, in vec2 fragCoord) {\n  float screenX = fragCoord.x / max(iResolution.x, 1.0);\n  float split = clamp(P_SPLIT, 0.0, 1.0);\n  float cell = clamp(P_UPSCALE, 1.2, 5.0) * max(iResolution.y / 360.0, 1.0);\n  float aniso = clamp(P_EDGE_ANISO, 0.0, 1.0);\n  float rcas = clamp(P_RCAS, 0.0, 1.6);\n\n  vec3 col = vec3(0.0);\n  if (screenX < split) {\n    // Left: Standard bilinear upscale from low-res buffer (soft edges, blurred diagonals)\n    vec2 pos = fragCoord / cell - 0.5;\n    vec2 base = floor(pos);\n    vec2 f = pos - base;\n    vec3 c00 = fetchLow(base + vec2(0.0, 0.0), cell, iTime);\n    vec3 c10 = fetchLow(base + vec2(1.0, 0.0), cell, iTime);\n    vec3 c01 = fetchLow(base + vec2(0.0, 1.0), cell, iTime);\n    vec3 c11 = fetchLow(base + vec2(1.0, 1.0), cell, iTime);\n    col = mix(mix(c00, c10, f.x), mix(c01, c11, f.x), f.y);\n  } else {\n    // Right: EASU edge-adaptive directional upscale + RCAS contrast-adaptive sharpening\n    vec3 eC = evalEASU(fragCoord, cell, aniso, iTime);\n    vec3 eL = evalEASU(fragCoord + vec2(-1.0, 0.0), cell, aniso, iTime);\n    vec3 eR = evalEASU(fragCoord + vec2(1.0, 0.0), cell, aniso, iTime);\n    vec3 eD = evalEASU(fragCoord + vec2(0.0, -1.0), cell, aniso, iTime);\n    vec3 eU = evalEASU(fragCoord + vec2(0.0, 1.0), cell, aniso, iTime);\n\n    vec3 mn = min(eC, min(min(eL, eR), min(eD, eU)));\n    vec3 mx = max(eC, max(max(eL, eR), max(eD, eU)));\n    // RCAS robust adaptive negative lobe weight capped to prevent clipping halos\n    vec3 hitMin = min(mn, 1.0 - mx);\n    float amp = clamp(min(hitMin.r, min(hitMin.g, hitMin.b)) / max(max(mx.r, max(mx.g, mx.b)), 0.08), 0.0, 1.0);\n    float w = -0.18 * rcas * sqrt(amp + 0.15);\n    col = (eC + w * (eL + eR + eD + eU)) / max(1.0 + 4.0 * w, 0.25);\n    col = clamp(col, mn * 0.94, mx * 1.06);\n  }\n\n  float sep = smoothstep(0.0035, 0.0008, abs(screenX - split));\n  col = mix(col, vec3(0.95, 0.98, 1.0), sep);\n  fragColor = vec4(pow(clamp(aces(col), 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);\n}",
   "execution_fidelity": "conceptual-diagram",
   "proof": {
    "kind": "rendered",
    "label": "rendered 2026-11-30",
    "ok": true,
    "proof": {
     "ok": true,
     "technique": "fidelityfx-super-resolution",
     "runtime": "glsl-fragment",
     "checked_at": "2026-11-30T21:07:11.000Z",
     "renderer": "Headless EGL Tesla T4/PCIe/SSE2, OpenGL 3.30 Core, 512×512, iTime=1.5",
     "stats": {
      "mean": 0.6473,
      "std": 0.1642,
      "min": 0.2579,
      "max": 0.9563
     },
     "image": "/specimens/fidelityfx-super-resolution-live.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "dlss",
  "temporal-anti-aliasing",
  "contrast-adaptive-sharpening"
 ],
 "extends": [
  "temporal-anti-aliasing"
 ],
 "supersedes": [],
 "combines_with": [
  {
   "id": "contrast-adaptive-sharpening",
   "why": "RCAS in FSR 1 is a derivative of CAS, applied after upscaling."
  }
 ],
 "provenance": {
  "prose": "original text written for this index (research draft, editorially reviewed)",
  "sources_verified_at": "2026-11-29T15:51:27.588Z",
  "draft": "data/drafts/post/fidelityfx-super-resolution.json"
 },
 "solves": [
  "need to upscale on any gpu vendor",
  "raise frame rate by rendering at lower resolution",
  "upscaler that works without motion vectors or ai hardware",
  "game too slow on integrated or older graphics cards"
 ],
 "authority": "GPUOpen-Effects, 2021",
 "url": "https://texelatlas.vercel.app/t/fidelityfx-super-resolution/",
 "execution_fidelity": "conceptual-diagram",
 "fidelity_label": "Visual Diagram",
 "benchmark_eligible": false,
 "gpu_weight": {
  "weight_x": 146.9,
  "tier": "extreme",
  "p50_ms": 4.8329,
  "p95_ms": 4.8863,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 32,
  "preset_id": "fidelityfx-super-resolution-live",
  "execution_fidelity": "conceptual-diagram",
  "fidelity_label": "Visual Diagram",
  "benchmark_eligible": false,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 294.22,
   "tier": "extreme",
   "p50_ms": 4.6781,
   "p95_ms": 4.8321,
   "speedup_x": 1.03,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 120.46,
   "tier": "extreme",
   "p50_ms": 3.4693,
   "p95_ms": 9.7697,
   "speedup_x": 1.39,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}