{
 "id": "dlss",
 "title": "NVIDIA DLSS",
 "aliases": [
  "Deep Learning Super Sampling"
 ],
 "domain": "post",
 "subdomain": "upscaling",
 "stage": "post",
 "realtime": "realtime",
 "platforms": [
  "desktop-gpu",
  "unreal",
  "unity"
 ],
 "year_introduced": 2018,
 "inputs": [
  "ldr-image",
  "depth",
  "gbuffer"
 ],
 "outputs": [
  "ldr-image"
 ],
 "style": "both",
 "dynamic": "dynamic",
 "summary": "NVIDIA's proprietary neural upscaler and denoiser running on RTX tensor cores. It consumes low-resolution colour, depth, motion vectors and jitter and outputs a temporally stable high-resolution frame.",
 "how_it_works": "DLSS Super Resolution is a learned temporal reconstruction. The engine renders at reduced resolution with sub-pixel jitter and hands the SDK colour, depth, motion vectors, exposure and camera data. A network trained offline on high-quality references decides per pixel how to combine the reprojected history and the new samples, replacing the hand-written heuristics of TAA. Later generations add Ray Reconstruction, which denoises path-traced lighting inside the same network, and Frame Generation, which synthesises intermediate frames using optical flow. Integration is through the NVIDIA SDK or the Streamline layer, and it needs an RTX GPU.",
 "when_to_use": "Choose it when the target is RTX hardware and you want the best upscaling image quality per millisecond, especially with ray tracing.\n\nPrefer `fidelityfx-super-resolution` when you need cross-vendor coverage. Prefer `temporal-anti-aliasing` when shipping to non-RTX hardware or WebGL, since this SDK is native only.",
 "cost": {
  "class": "medium",
  "notes": "Fixed per-frame network cost that scales with output resolution; a net win versus native when the scale factor is 2x or more. Qualitative."
 },
 "failure_modes": [
  "Ghosting or smearing on objects with wrong or missing motion vectors",
  "Proprietary closed-source model, locked to NVIDIA hardware",
  "Particle and transparent effects flicker without reactive masks",
  "Occasional hallucinated detail on thin repeating patterns"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "gh:nvidia/dlss",
   "type": "code",
   "title": "NVIDIA/DLSS",
   "description": "NVIDIA DLSS is a new and improved deep learning neural network that boosts frame rates and generates beautiful, sharp images for your games",
   "authors": [
    "NVIDIA"
   ],
   "year": 2021,
   "venue": "GitHub",
   "url": "https://github.com/NVIDIA/DLSS",
   "ids": {
    "repo": "NVIDIA/DLSS"
   },
   "license": "NOASSERTION",
   "extra": {
    "stars": 1700,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2026-10-16T16:07:09Z",
    "language": "C",
    "homepage": null,
    "license_name": "Other"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/NVIDIA/DLSS",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/NVIDIA/DLSS",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/NVIDIA/DLSS",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/NVIDIA/DLSS",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/NVIDIA/DLSS",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/NVIDIA/DLSS",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "nvidia2021nvidia"
  },
  {
   "role": "implementation",
   "key": "gh:nvidia-rtx/streamline",
   "type": "code",
   "title": "NVIDIA-RTX/Streamline",
   "description": "Streamline Integration Framework",
   "authors": [
    "NVIDIA-RTX"
   ],
   "year": 2022,
   "venue": "GitHub",
   "url": "https://github.com/NVIDIA-RTX/Streamline",
   "ids": {
    "repo": "NVIDIA-RTX/Streamline"
   },
   "license": "NOASSERTION",
   "extra": {
    "stars": 1419,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2026-10-16T15:59:55Z",
    "language": "C",
    "homepage": null,
    "license_name": "Other"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/NVIDIA-RTX/Streamline",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/NVIDIA-RTX/Streamline",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/NVIDIA-RTX/Streamline",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/NVIDIA-RTX/Streamline",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/NVIDIA-RTX/Streamline",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/NVIDIA-RTX/Streamline",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "nvidiartx2022nvidia"
  }
 ],
 "presets": [
  {
   "id": "dlss-live",
   "title": "NVIDIA DLSS — aliased low-res input with shimmer (left) vs motion-compensated temporal super-resolution (right)",
   "runtime": "glsl-fragment",
   "params": {
    "P_RENDER_SCALE": 0.42,
    "P_SHARPNESS": 0.65,
    "P_MOTION": 0.6,
    "P_SPLIT": 0.48
   },
   "basis": "original",
   "license_note": "MIT — written for this index.",
   "code": "const float P_RENDER_SCALE = 0.42; // P Low-Res Scale [0.20, 0.75, 0.02]\nconst float P_SHARPNESS = 0.65; // P Detail Sharpen [0.0, 1.2, 0.05]\nconst float P_MOTION = 0.60; // P Camera Motion [0.0, 1.5, 0.05]\nconst float P_SPLIT = 0.48; // P Low-Res / DLSS [0.0, 1.0, 0.02]\n\nfloat hash21(vec2 p) {\n  p = fract(p * vec2(123.34, 456.21));\n  p += dot(p, p + 45.32);\n  return fract(p.x * p.y);\n}\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-frequency architectural scene (thin cables, louver fins, metallic tower, checker plaza)\n// ideal for exposing low-res aliasing vs temporal super-resolution reconstruction.\nvec3 evalScene(vec2 uv, float t) {\n  vec3 ro = vec3(0.32 * sin(t * 0.7), 0.38 + 0.06 * cos(t * 0.9), 2.35);\n  vec3 rd = normalize(vec3(uv.x, uv.y - 0.07, -1.55));\n  rd.xz = rot2(rd.xz, 0.12 * sin(t * 0.5));\n\n  // Dusk twilight gradient sky\n  vec3 col = mix(vec3(0.08, 0.12, 0.20), vec3(0.35, 0.48, 0.68), smoothstep(-0.15, 0.65, rd.y));\n  vec3 sunDir = normalize(vec3(0.55, 0.48, -0.68));\n  col += vec3(1.5, 0.92, 0.48) * pow(max(dot(rd, sunDir), 0.0), 48.0);\n\n  float tMin = 1e5;\n  int matId = 0;\n  vec3 hitP = vec3(0.0);\n  vec3 hitN = vec3(0.0, 1.0, 0.0);\n\n  // Ground plane with fine high-frequency perspective grid\n  if (rd.y < -0.005) {\n    float tg = (-0.52 - ro.y) / rd.y;\n    if (tg > 0.05 && tg < 26.0) {\n      tMin = tg;\n      matId = 1;\n      hitP = ro + rd * tg;\n      hitN = vec3(0.0, 1.0, 0.0);\n    }\n  }\n\n  // Hero chrome & louvered architectural sphere\n  vec3 sc = vec3(0.0, -0.04, 0.0);\n  vec3 oc = ro - sc;\n  float b = dot(oc, rd);\n  float c = dot(oc, oc) - 0.48 * 0.48;\n  float d = b * b - c;\n  if (d > 0.0) {\n    float ts = -b - sqrt(d);\n    if (ts > 0.05 && ts < tMin) {\n      tMin = ts;\n      matId = 2;\n      hitP = ro + rd * ts;\n      hitN = normalize(hitP - sc);\n    }\n  }\n\n  // Thin architectural louver tower behind sphere\n  vec3 bc = vec3(-0.78, 0.15, -0.85);\n  vec3 br = vec3(0.28, 0.72, 0.28);\n  vec3 invR = 1.0 / (rd + vec3(1e-6));\n  vec3 t0 = (bc - br - ro) * invR;\n  vec3 t1 = (bc + br - ro) * invR;\n  vec3 tNearV = min(t0, t1);\n  vec3 tFarV = max(t0, t1);\n  float tn = max(max(tNearV.x, tNearV.y), tNearV.z);\n  float tf = min(min(tFarV.x, tFarV.y), tFarV.z);\n  if (tf > max(tn, 0.05) && tn < tMin) {\n    tMin = tn;\n    matId = 3;\n    hitP = ro + rd * tn;\n    vec3 lp = (hitP - bc) / br;\n    vec3 ap = abs(lp);\n    hitN = (ap.x > ap.y && ap.x > ap.z) ? vec3(sign(lp.x), 0.0, 0.0)\n         : (ap.y > ap.z ? vec3(0.0, sign(lp.y), 0.0) : vec3(0.0, 0.0, sign(lp.z)));\n  }\n\n  // Second fine-ribbed pylon on the right\n  vec3 bc2 = vec3(0.82, 0.05, -0.65);\n  vec3 br2 = vec3(0.24, 0.62, 0.24);\n  vec3 u0 = (bc2 - br2 - ro) * invR;\n  vec3 u1 = (bc2 + br2 - ro) * invR;\n  vec3 uNear = min(u0, u1);\n  vec3 uFar = max(u0, u1);\n  float un = max(max(uNear.x, uNear.y), uNear.z);\n  float uf = min(min(uFar.x, uFar.y), uFar.z);\n  if (uf > max(un, 0.05) && un < tMin) {\n    tMin = un;\n    matId = 4;\n    hitP = ro + rd * un;\n    vec3 lp = (hitP - bc2) / br2;\n    vec3 ap = abs(lp);\n    hitN = (ap.x > ap.y && ap.x > ap.z) ? vec3(sign(lp.x), 0.0, 0.0)\n         : (ap.y > ap.z ? vec3(0.0, sign(lp.y), 0.0) : vec3(0.0, 0.0, sign(lp.z)));\n  }\n\n  if (matId == 1) {\n    vec2 gx = hitP.xz * 4.5;\n    float chk = mod(floor(gx.x) + floor(gx.y), 2.0);\n    float fineLine = step(0.90, max(fract(gx.x * 2.0), fract(gx.y * 2.0)));\n    vec3 alb = mix(vec3(0.12, 0.14, 0.18), vec3(0.74, 0.78, 0.84), chk);\n    alb = mix(alb, vec3(0.18, 0.88, 0.96), fineLine * 0.55);\n    float sh = smoothstep(0.32, 0.72, length(hitP.xz - vec2(0.0, 0.0)));\n    float fog = exp(-tMin * 0.09);\n    col = mix(col, alb * (0.28 + 0.82 * sh), fog);\n  } else if (matId == 2) {\n    vec3 v = -rd;\n    vec3 r = reflect(-v, hitN);\n    // Fine diagonal machined micro-stripes on metallic sphere\n    float stripe = step(0.0, sin((hitN.x * 26.0 + hitN.y * 34.0 + hitN.z * 18.0)));\n    vec3 baseCol = mix(vec3(0.18, 0.24, 0.32), vec3(0.92, 0.74, 0.36), stripe);\n    float ndl = max(dot(hitN, sunDir), 0.0);\n    float spec = pow(max(dot(r, sunDir), 0.0), 42.0);\n    float fres = pow(1.0 - max(dot(hitN, v), 0.0), 4.0);\n    vec3 envC = mix(vec3(0.12, 0.18, 0.30), vec3(0.86, 0.92, 1.0), smoothstep(-0.2, 0.6, r.y));\n    col = baseCol * (0.22 + 0.95 * ndl) + envC * fres * 0.75 + vec3(1.4, 1.25, 1.0) * spec;\n  } else if (matId == 3 || matId == 4) {\n    // High-frequency horizontal louvers & glowing cyan/amber window slits\n    float band = fract(hitP.y * 18.0);\n    float slit = step(0.55, band);\n    vec3 accent = (matId == 3) ? vec3(0.18, 0.92, 1.0) : vec3(1.0, 0.58, 0.20);\n    float ndl = max(dot(hitN, sunDir), 0.0);\n    col = mix(vec3(0.10, 0.12, 0.16), vec3(0.52, 0.58, 0.66) * (0.35 + 0.8 * ndl), 1.0 - slit * 0.65);\n    col += accent * step(0.80, band) * 0.95;\n  }\n\n  // Thin diagonal architectural suspension cables across upper sky (brutal sub-pixel aliasing test!)\n  for (int k = 0; k < 4; k++) {\n    float fk = float(k);\n    float yLine = 0.28 + fk * 0.085 - uv.x * (0.14 + fk * 0.04) + 0.02 * sin(t * 0.6 + fk);\n    float wire = smoothstep(0.0045, 0.0012, abs(uv.y - yLine));\n    col = mix(col, vec3(0.95, 0.97, 1.0), wire * 0.85);\n  }\n  return col;\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 t = iTime * max(P_MOTION, 0.0);\n  float scale = clamp(P_RENDER_SCALE, 0.18, 0.80);\n  float sharp = clamp(P_SHARPNESS, 0.0, 1.4);\n\n  vec3 col = vec3(0.0);\n  if (screenX < split) {\n    // Left: Low internal render resolution (point-sampled with sub-pixel jitter shimmer)\n    float cell = max(1.0 / scale, 1.5);\n    vec2 jitter = vec2(hash21(vec2(floor(iTime * 24.0), 1.7)), hash21(vec2(3.1, floor(iTime * 24.0)))) - 0.5;\n    vec2 lowCoord = (floor(fragCoord / cell) + 0.5 + jitter * 0.45) * cell;\n    vec2 uvLow = (lowCoord - 0.5 * iResolution.xy) / iResolution.y;\n    col = evalScene(uvLow, t);\n  } else {\n    // Right: DLSS-style multi-frame Halton-jittered temporal accumulation + neural-like edge sharpening\n    vec3 acc = vec3(0.0);\n    vec3 cMin = vec3(1e5);\n    vec3 cMax = vec3(-1e5);\n    vec2 px = 1.0 / max(iResolution.y, 1.0) * vec2(1.0);\n    // 8 sub-pixel Halton offsets simulating converged temporal history reprojection\n    for (int i = 0; i < 8; i++) {\n      float fi = float(i);\n      vec2 hOff = vec2(fract(fi * 0.5 + 0.25), fract(fi * 0.3333 + 0.1667)) - 0.5;\n      vec2 uvS = (fragCoord + hOff * 0.95 - 0.5 * iResolution.xy) / iResolution.y;\n      vec3 c = evalScene(uvS, t);\n      acc += c;\n      cMin = min(cMin, c);\n      cMax = max(cMax, c);\n    }\n    vec3 resolved = acc * 0.125;\n    // Mild unsharp detail reconstruction clamped to neighborhood gamut (zero ringing)\n    vec2 uvC = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;\n    vec3 center = evalScene(uvC, t);\n    vec3 detail = center - resolved;\n    col = clamp(resolved + detail * sharp * 0.45, cMin * 0.92, cMax * 1.08);\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": "dlss",
     "runtime": "glsl-fragment",
     "checked_at": "2026-11-30T21:07:07.000Z",
     "renderer": "Headless EGL Tesla T4/PCIe/SSE2, OpenGL 3.30 Core, 512×512, iTime=1.5",
     "stats": {
      "mean": 0.57,
      "std": 0.1606,
      "min": 0.2452,
      "max": 0.9529
     },
     "image": "/specimens/dlss-live.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "fidelityfx-super-resolution",
  "temporal-anti-aliasing"
 ],
 "extends": [
  "temporal-anti-aliasing"
 ],
 "supersedes": [],
 "combines_with": [
  {
   "id": "contrast-adaptive-sharpening",
   "why": "Optional post-sharpen 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/dlss.json"
 },
 "solves": [
  "game runs too slow at native 4k",
  "render at lower resolution but keep sharp image",
  "need temporal upscaling on nvidia rtx hardware",
  "frame rate too low with ray tracing enabled"
 ],
 "authority": "NVIDIA, 2021",
 "url": "https://texelatlas.vercel.app/t/dlss/",
 "execution_fidelity": "conceptual-diagram",
 "fidelity_label": "Visual Diagram",
 "benchmark_eligible": false,
 "gpu_weight": {
  "weight_x": 20.91,
  "tier": "heavy",
  "p50_ms": 0.6879,
  "p95_ms": 0.7137,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 32,
  "preset_id": "dlss-live",
  "execution_fidelity": "conceptual-diagram",
  "fidelity_label": "Visual Diagram",
  "benchmark_eligible": false,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 19.21,
   "tier": "moderate",
   "p50_ms": 0.3054,
   "p95_ms": 0.3065,
   "speedup_x": 2.25,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 14.95,
   "tier": "moderate",
   "p50_ms": 0.4306,
   "p95_ms": 0.4323,
   "speedup_x": 1.6,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}