NVIDIA DLSS
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.
Also known as Deep Learning Super Sampling
In the family Post-processing, color & imaging, upscaling
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | None found | |
| Babylon.js 9.38.0 | None found | |
| Godot 4.7 | None found | |
| Unity | Built in | HDRP Asset > Dynamic Resolution > Enable DLSS; Camera > Allow DLSS docs HDRP only (DX11/DX12/Vulkan, NVIDIA RTX). Not in URP. |
| Unreal 5.7 | Plugin | NVIDIA DLSS plugin (third-party, distributed by NVIDIA); plugs into the temporal upscaler interface docs Docs list DLSS as a third-party distributed plugin. |
| Blender 5.2 | None found | |
| WebGPU W3C | Not applicable | Vendor SDK for native APIs; not exposed to WebGPU. |
| Metal | Not applicable | NVIDIA only; MetalFX temporal scaler is the Apple equivalent. |
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 choose it
Reach for it when
- 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
Choose it when the target is RTX hardware and you want the best upscaling image quality per millisecond, especially with ray tracing.
Prefer AMD 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.
Field marks
- 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
Presets
NVIDIA DLSS — aliased low-res input with shimmer (left) vs motion-compensated temporal super-resolution (right)
{
"P_RENDER_SCALE": 0.42,
"P_SHARPNESS": 0.65,
"P_MOTION": 0.6,
"P_SPLIT": 0.48
}Show GLSL (188 lines)
const float P_RENDER_SCALE = 0.42; // P Low-Res Scale [0.20, 0.75, 0.02]
const float P_SHARPNESS = 0.65; // P Detail Sharpen [0.0, 1.2, 0.05]
const float P_MOTION = 0.60; // P Camera Motion [0.0, 1.5, 0.05]
const float P_SPLIT = 0.48; // P Low-Res / DLSS [0.0, 1.0, 0.02]
float hash21(vec2 p) {
p = fract(p * vec2(123.34, 456.21));
p += dot(p, p + 45.32);
return fract(p.x * p.y);
}
vec2 rot2(vec2 p, float a) {
float c = cos(a);
float s = sin(a);
return vec2(c * p.x - s * p.y, s * p.x + c * p.y);
}
// High-frequency architectural scene (thin cables, louver fins, metallic tower, checker plaza)
// ideal for exposing low-res aliasing vs temporal super-resolution reconstruction.
vec3 evalScene(vec2 uv, float t) {
vec3 ro = vec3(0.32 * sin(t * 0.7), 0.38 + 0.06 * cos(t * 0.9), 2.35);
vec3 rd = normalize(vec3(uv.x, uv.y - 0.07, -1.55));
rd.xz = rot2(rd.xz, 0.12 * sin(t * 0.5));
// Dusk twilight gradient sky
vec3 col = mix(vec3(0.08, 0.12, 0.20), vec3(0.35, 0.48, 0.68), smoothstep(-0.15, 0.65, rd.y));
vec3 sunDir = normalize(vec3(0.55, 0.48, -0.68));
col += vec3(1.5, 0.92, 0.48) * pow(max(dot(rd, sunDir), 0.0), 48.0);
float tMin = 1e5;
int matId = 0;
vec3 hitP = vec3(0.0);
vec3 hitN = vec3(0.0, 1.0, 0.0);
// Ground plane with fine high-frequency perspective grid
if (rd.y < -0.005) {
float tg = (-0.52 - ro.y) / rd.y;
if (tg > 0.05 && tg < 26.0) {
tMin = tg;
matId = 1;
hitP = ro + rd * tg;
hitN = vec3(0.0, 1.0, 0.0);
}
}
// Hero chrome & louvered architectural sphere
vec3 sc = vec3(0.0, -0.04, 0.0);
vec3 oc = ro - sc;
float b = dot(oc, rd);
float c = dot(oc, oc) - 0.48 * 0.48;
float d = b * b - c;
if (d > 0.0) {
float ts = -b - sqrt(d);
if (ts > 0.05 && ts < tMin) {
tMin = ts;
matId = 2;
hitP = ro + rd * ts;
hitN = normalize(hitP - sc);
}
}
// Thin architectural louver tower behind sphere
vec3 bc = vec3(-0.78, 0.15, -0.85);
vec3 br = vec3(0.28, 0.72, 0.28);
vec3 invR = 1.0 / (rd + vec3(1e-6));
vec3 t0 = (bc - br - ro) * invR;
vec3 t1 = (bc + br - ro) * invR;
vec3 tNearV = min(t0, t1);
vec3 tFarV = max(t0, t1);
float tn = max(max(tNearV.x, tNearV.y), tNearV.z);
float tf = min(min(tFarV.x, tFarV.y), tFarV.z);
if (tf > max(tn, 0.05) && tn < tMin) {
tMin = tn;
matId = 3;
hitP = ro + rd * tn;
vec3 lp = (hitP - bc) / br;
vec3 ap = abs(lp);
hitN = (ap.x > ap.y && ap.x > ap.z) ? vec3(sign(lp.x), 0.0, 0.0)
: (ap.y > ap.z ? vec3(0.0, sign(lp.y), 0.0) : vec3(0.0, 0.0, sign(lp.z)));
}
// Second fine-ribbed pylon on the right
vec3 bc2 = vec3(0.82, 0.05, -0.65);
vec3 br2 = vec3(0.24, 0.62, 0.24);
vec3 u0 = (bc2 - br2 - ro) * invR;
vec3 u1 = (bc2 + br2 - ro) * invR;
vec3 uNear = min(u0, u1);
vec3 uFar = max(u0, u1);
float un = max(max(uNear.x, uNear.y), uNear.z);
float uf = min(min(uFar.x, uFar.y), uFar.z);
if (uf > max(un, 0.05) && un < tMin) {
tMin = un;
matId = 4;
hitP = ro + rd * un;
vec3 lp = (hitP - bc2) / br2;
vec3 ap = abs(lp);
hitN = (ap.x > ap.y && ap.x > ap.z) ? vec3(sign(lp.x), 0.0, 0.0)
: (ap.y > ap.z ? vec3(0.0, sign(lp.y), 0.0) : vec3(0.0, 0.0, sign(lp.z)));
}
if (matId == 1) {
vec2 gx = hitP.xz * 4.5;
float chk = mod(floor(gx.x) + floor(gx.y), 2.0);
float fineLine = step(0.90, max(fract(gx.x * 2.0), fract(gx.y * 2.0)));
vec3 alb = mix(vec3(0.12, 0.14, 0.18), vec3(0.74, 0.78, 0.84), chk);
alb = mix(alb, vec3(0.18, 0.88, 0.96), fineLine * 0.55);
float sh = smoothstep(0.32, 0.72, length(hitP.xz - vec2(0.0, 0.0)));
float fog = exp(-tMin * 0.09);
col = mix(col, alb * (0.28 + 0.82 * sh), fog);
} else if (matId == 2) {
vec3 v = -rd;
vec3 r = reflect(-v, hitN);
// Fine diagonal machined micro-stripes on metallic sphere
float stripe = step(0.0, sin((hitN.x * 26.0 + hitN.y * 34.0 + hitN.z * 18.0)));
vec3 baseCol = mix(vec3(0.18, 0.24, 0.32), vec3(0.92, 0.74, 0.36), stripe);
float ndl = max(dot(hitN, sunDir), 0.0);
float spec = pow(max(dot(r, sunDir), 0.0), 42.0);
float fres = pow(1.0 - max(dot(hitN, v), 0.0), 4.0);
vec3 envC = mix(vec3(0.12, 0.18, 0.30), vec3(0.86, 0.92, 1.0), smoothstep(-0.2, 0.6, r.y));
col = baseCol * (0.22 + 0.95 * ndl) + envC * fres * 0.75 + vec3(1.4, 1.25, 1.0) * spec;
} else if (matId == 3 || matId == 4) {
// High-frequency horizontal louvers & glowing cyan/amber window slits
float band = fract(hitP.y * 18.0);
float slit = step(0.55, band);
vec3 accent = (matId == 3) ? vec3(0.18, 0.92, 1.0) : vec3(1.0, 0.58, 0.20);
float ndl = max(dot(hitN, sunDir), 0.0);
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);
col += accent * step(0.80, band) * 0.95;
}
// Thin diagonal architectural suspension cables across upper sky (brutal sub-pixel aliasing test!)
for (int k = 0; k < 4; k++) {
float fk = float(k);
float yLine = 0.28 + fk * 0.085 - uv.x * (0.14 + fk * 0.04) + 0.02 * sin(t * 0.6 + fk);
float wire = smoothstep(0.0045, 0.0012, abs(uv.y - yLine));
col = mix(col, vec3(0.95, 0.97, 1.0), wire * 0.85);
}
return col;
}
vec3 aces(vec3 x) {
x = max(x, 0.0);
return (x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14);
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
float screenX = fragCoord.x / max(iResolution.x, 1.0);
float split = clamp(P_SPLIT, 0.0, 1.0);
float t = iTime * max(P_MOTION, 0.0);
float scale = clamp(P_RENDER_SCALE, 0.18, 0.80);
float sharp = clamp(P_SHARPNESS, 0.0, 1.4);
vec3 col = vec3(0.0);
if (screenX < split) {
// Left: Low internal render resolution (point-sampled with sub-pixel jitter shimmer)
float cell = max(1.0 / scale, 1.5);
vec2 jitter = vec2(hash21(vec2(floor(iTime * 24.0), 1.7)), hash21(vec2(3.1, floor(iTime * 24.0)))) - 0.5;
vec2 lowCoord = (floor(fragCoord / cell) + 0.5 + jitter * 0.45) * cell;
vec2 uvLow = (lowCoord - 0.5 * iResolution.xy) / iResolution.y;
col = evalScene(uvLow, t);
} else {
// Right: DLSS-style multi-frame Halton-jittered temporal accumulation + neural-like edge sharpening
vec3 acc = vec3(0.0);
vec3 cMin = vec3(1e5);
vec3 cMax = vec3(-1e5);
vec2 px = 1.0 / max(iResolution.y, 1.0) * vec2(1.0);
// 8 sub-pixel Halton offsets simulating converged temporal history reprojection
for (int i = 0; i < 8; i++) {
float fi = float(i);
vec2 hOff = vec2(fract(fi * 0.5 + 0.25), fract(fi * 0.3333 + 0.1667)) - 0.5;
vec2 uvS = (fragCoord + hOff * 0.95 - 0.5 * iResolution.xy) / iResolution.y;
vec3 c = evalScene(uvS, t);
acc += c;
cMin = min(cMin, c);
cMax = max(cMax, c);
}
vec3 resolved = acc * 0.125;
// Mild unsharp detail reconstruction clamped to neighborhood gamut (zero ringing)
vec2 uvC = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;
vec3 center = evalScene(uvC, t);
vec3 detail = center - resolved;
col = clamp(resolved + detail * sharp * 0.45, cMin * 0.92, cMax * 1.08);
}
float sep = smoothstep(0.0035, 0.0008, abs(screenX - split));
col = mix(col, vec3(0.95, 0.98, 1.0), sep);
fragColor = vec4(pow(clamp(aces(col), 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);
}Attribution: MIT — written for this index.
Measured GPU weight & timing
| Preset | GPU | Weight / p50 / p95 | Method |
|---|---|---|---|
| dlss-live | Tesla T4 1920x1080 | 20.9× baseline (heavy) · 0.688 ms / 0.714 ms | opengl-timer-query · 32 frames · GPU Weight Atlas · Colab T4 sweep |
| dlss-live | NVIDIA L4 1920x1080 | 19.2× baseline (moderate) · 0.305 ms / 0.306 ms · 2.3× faster on L4 | opengl-timer-query · Cross-architecture validation |
| dlss-live | NVIDIA A100-SXM4-40GB 1920x1080 | 14.9× baseline (moderate) · 0.431 ms / 0.432 ms · 1.6× faster on A100 | opengl-timer-query · Cross-architecture validation |
Lineage
Crosses
- Contrast Adaptive Sharpening: Optional post-sharpen after upscaling.
Sources
- primaryNVIDIA (2021). NVIDIA/DLSS. NVIDIA DLSS is a new and improved deep learning neural network that boosts frame rates and generates beautiful, sharp images for your gamesGitHub API · license NOASSERTION · 2026-11-29
- implementationNVIDIA-RTX (2022). NVIDIA-RTX/Streamline. Streamline Integration FrameworkGitHub API · license NOASSERTION · 2026-11-29