English · 简体中文
DLSSNR-Video applies DLSS5 neural rendering to browser video on Linux. It is a Linux Vulkan
layer plus helper service that forwards presented frames to a Windows NGX neural-rendering helper
running under Wine or a custom Proton compatibility tool, with a browser extension that finds the
visible <video> element and a region of interest (ROI) that limits work to the picture.
This project is experimental. It is intended for local testing and research.
This repository was split out of van-thieu/DLSS5VKLayer,
which remains the game-focused project. The two share their origins in
bmitch87/DLSS5VKLayer (0.3.2-1 upstream), but are now
separate: use DLSS5VKLayer for games and this repository for browser video. Each has its own
shared-memory protocol version and its own installed layer manifest, so they can coexist.
- The present path no longer takes the application's wait semaphores. The capture copy is ordered behind the application's own submit by queue order instead, which consumes nothing, and the application's semaphores go back to it unchanged. Taking them starved the other consumers of the present path -- Steam's overlay, and the frame generation that sits in the same chain when the game has it enabled -- and a wait that never completes is a frame that never arrives.
- Steam's auxiliary processes are left alone. The layer stands aside in
gameoverlayui,steamoverlayrenderer,steamwebhelper,steamerrorreporterandsteamfossilize, where nothing needs neural rendering. SetDLSSNR_ALLOW_OVERLAY=1for the old behaviour. - The present path's waits are bounded. A fence on the present path is given one second; on timeout the swapchain passes the frame through untouched instead of parking the game's render thread for the rest of the session.
- GUI numeric fields are a slider plus a text input. Every integer and float setting is a slider with an editable number beside it, rather than a spinbox.
- Game profiles are published under
game_profiles/, grouped by the GPU they were calibrated on.
Fork-specific environment controls:
DLSSNR_ALLOW_OVERLAY=1 keep the layer active in Steam's auxiliary processes
The browser path is a separate profile, layer manifest and shared-memory file from the game path.
Launch the video browser through ~/.local/bin/dlss5-chrome (the Google Chrome desktop entry on
this machine) or ~/.local/bin/dlss5-firefox-temp for the snap-friendly Firefox loader. Chrome is
started with a dedicated profile, an ANGLE/Vulkan present path and the video layer enabled; the layer
library and the native messaging host come from this repository.
Load the unpacked extension from browser-extension/chrome/ via
Developer mode → Load unpacked in chrome://extensions, or load
browser-extension/firefox/ as a temporary add-on. The native
messaging host is browser-extension/host/dlssnr_bridge.py (com.dlssnr.bridge); for Firefox the
same commands go over a loopback daemon on 127.0.0.1:8765.
Activation is click-based. Nothing happens on a page until you click the toolbar icon (or press
Alt+Shift+D). That arms the tab: the panel opens and video gating starts. Clicking again, pressing
the shortcut again, or the panel's × disarms it and switches the pass off. Arming lasts for the
current page — a full navigation, closing the tab or restarting the browser clears it. Sites you
never click are completely inert: no panel, no reports, no ROI, no auto profile and no enhancement,
even when they are playing video.
Auto sites. Open the extension options (chrome://extensions → Details → Extension options,
or the ⚙ button in the panel) to allowlist sites that arm themselves on load. Rules can be a host
(youtube.com, www optional), a host plus subdomains (*.netflix.com), a host + path prefix
(example.com/watch), or a full https:// URL. An empty list keeps the extension purely
click-activated. A tab you manually switch off stays off until you navigate to a different page.
Profiles and settings. Auto-profile-by-site is owned by the native host, so the in-page panel and
the native GTK panel share one source of truth. Video profiles live in
~/.config/dlssnr-video/dlssnr/profiles/, the remembered site choices in
~/.config/dlssnr-video/dlssnr/auto-profiles.json, and the shared memory in
$DLSSNR_RUNTIME_DIR/shm.bin (default ~/dlssnr-runtime/shm.bin). See
VIDEO_APP.md for the full browser video guide, including the Vulkan-mode native
panel and Firefox setup.
Status wording. helper_state=4 means the helper process is alive. model_up=0 is normal until
the layer has composed its first frame; the panel says "Helper running — model not ready yet"
rather than "Helper not running". The bridge's chrome.ready only requires a running helper and a
Chrome GPU process with the video layer mapped, so a fresh helper cannot deadlock startup.
ROI and swapchain size. The ROI is computed from the page's layout viewport, because Chrome's
Vulkan swapchain covers the content area (window minus browser chrome), not the whole window. If the
log reports swapchain ... is not the ROI's ...; presenting it raw, the two sizes disagree and no
frame is enhanced. With DLSSNR_LOG set, the layer logs to that file; otherwise it writes to the
browser process' stderr.
- Vulkan implicit layer for native Linux games and Proton games.
- Fail-open design: if the helper is missing or neural initialization fails, games continue presenting original frames.
- Windows NGX helper runs under:
- custom Steam compatibility tools such as Proton-CachyOS, Proton-GE, Wine-GE, and similar tools
- system Wine with a managed prefix and vendored DXVK 2.7.1
- Synthetic motion vectors generated with
VK_NV_optical_flowwhen available. - HDR input: on an HDR swapchain the model is shown a float16 proxy of the frame's real light -- PQ-decoded first when the swapchain carries PQ -- instead of a tone-mapped 8-bit copy.
- Qt GUI for live controls:
- enable/disable neural processing
- multi-pass rendering
- DLSS5 Native/Natural/Cinematic presets
- intensity, tone, structure, skin structure, and sharpness
- per-pass overrides
- synthetic motion-vector enable, scale mode, and quality
- saving and loading named setting profiles
- importing the NVIDIA NGX DLLs (gear menu -> NGX binaries)
- CLI helper manager:
- runner discovery
- start/stop/status
- diagnostics
- NVIDIA NGX binary import
- XDG-aware paths:
- config:
$XDG_CONFIG_HOME/dlssnr/config.ini - runtime/SHM/PID:
/tmp/dlssnr-$UID/(not$XDG_RUNTIME_DIR, which Steam's container makes private) - logs/state:
$XDG_STATE_HOME/dlssnr/, fallback~/.local/state/dlssnr/ - managed prefix:
~/.local/share/dlssnr/prefix/
- config:
- NVIDIA GPU and NVIDIA driver.
- Vulkan loader.
- Qt 6 for the GUI.
- One of:
- a custom Steam compatibility tool that bundles DXVK-NVAPI, such as Proton-CachyOS or Proton-GE
- system Wine for the fallback path
Valve's official Proton releases and Proton Experimental are not targeted as primary runners because they do not bundle the required DXVK-NVAPI stack. System Wine can obtain the open-source runtime DLLs automatically.
The system-Wine path needs dxgi.dll from DXVK and nvapi64.dll from DXVK-NVAPI. The helper resolves them in this order:
- Existing files in the configured binaries folder (
$XDG_DATA_HOME/dlssnr/binariesby default). - An installed compatible Proton tool.
- Pinned releases downloaded from the official DXVK and DXVK-NVAPI GitHub projects, with SHA256 verification.
Downloaded files are cached in $XDG_DATA_HOME/dlssnr/binaries and are not NVIDIA NGX files. Set DLSSNR_AUTO_DOWNLOAD=0 to require users to provide them manually. The upstream projects' licenses apply to these components; the project does not redistribute them in its packages.
The public package does not include NVIDIA proprietary NGX DLLs.
Only nvngx_dlssnr.dll is required -- neural processing stays off without it. The rest are optional and
depend on the runner:
nvngx_dlssnr.dll-- required (the model itself)nvngx.dll,nvapi64.dll-- used by the core/NVAPI path; optional under Proton, where DXVK-NVAPI already supplies NVAPI (the helper skips the vendorednvapi64.dllthere)sl.*.dll-- Streamline DLLs; not loaded by this build
Import them with the CLI:
dlssnr-helper import-binaries /path/to/dllsor from the GUI: gear menu -> NGX binaries -> Import binaries.... On first launch the GUI also
prompts to import when nvngx_dlssnr.dll is missing. Either way the files are copied into
$XDG_DATA_HOME/dlssnr/binaries; restart the helper afterwards to load them.
The personal package variant includes these DLLs. Only redistribute the personal variant if you have the rights to do so.
The RPMs are the packaged builds under dist/, produced by Packaging. Install with
dnf so the dependencies (Qt 6, the Vulkan loader) come with it:
Public package:
sudo dnf install ./dist/dlssnr-[0-9]*.x86_64.rpmPersonal package:
sudo dnf install ./dist/dlssnr-personal-*.x86_64.rpmwine is a recommended package, not a hard dependency, so Proton-only users are not forced to install host Wine.
Installing also writes ~/.config/environment.d/dlssnr.conf for each user -- a systemd user-session
snippet pinning VK_INSTANCE_LAYERS="VK_LAYER_NV_dlssnr:VK_LAYER_NV_present" so this layer orders
correctly alongside Smooth Motion. It takes effect on the next login, never overwrites an existing
file, and is removed on uninstall if you have not edited it.
Stop the helper first if it is running, then upgrade in place -- user config, state and the managed prefix survive the update:
dlssnr-helper stop
sudo dnf upgrade ./dist/dlssnr-[0-9]*.x86_64.rpm(rpm -Uvh ./dist/dlssnr-[0-9]*.x86_64.rpm does the same job on systems without dnf.)
Relaunch any game that was presenting through the layer so it picks up the new layer library.
The two variants carry the same files and conflict with each other, so switching between them is a swap, not an install:
sudo dnf swap dlssnr dlssnr-personal # or the other way roundThe tarball runs on any x86_64 glibc distro -- Fedora, openSUSE, Debian and friends, and Arch and
CachyOS. Since 0.2.5-2 the GUI binary reaches Qt's meta-object data symbols through the GOT, so it
loads against both the default-visibility Qt (Fedora) and the protected-visibility Qt (Arch/CachyOS);
older tarballs die at exec on Arch-based systems with
GNU_PROPERTY_1_NEEDED_INDIRECT_EXTERN_ACCESS.
Extract the tarball (* matches whatever version you just built; use the
dlssnr-personal-* tarball for the personal variant):
tar -xzf dist/dlssnr-[0-9]*-linux-x86_64.tar.gz
cd dlssnr-*-linux-x86_64User install, no root required:
./install.sh --userSystem install:
sudo ./install.sh --systemFor user installs, make sure ~/.local/bin is in your PATH.
install.sh also writes ~/.config/environment.d/dlssnr.conf (system installs:
/etc/environment.d/dlssnr.conf) pinning VK_INSTANCE_LAYERS="VK_LAYER_NV_dlssnr:VK_LAYER_NV_present"
so this layer orders correctly alongside Smooth Motion. It takes effect on the next login.
install.sh overwrites the files it owns in place, so an update is just the new tarball installed
over the old one -- user config, state and the managed prefix are not touched:
dlssnr-helper stop
tar -xzf dist/dlssnr-[0-9]*-linux-x86_64.tar.gz
cd dlssnr-*-linux-x86_64
./install.sh --user # or: sudo ./install.sh --systemRelaunch any game that was presenting through the layer so it picks up the new layer library.
Stick to one install mode and one packaging format. The --user and --system trees and the tarball
and the RPM all own the same layer manifest, and the loader reads whichever it finds first -- if you
switched modes or came from the RPM, remove the other copy first (sudo ./uninstall.sh --system, or
sudo dnf remove dlssnr).
Initialize configuration:
dlssnr-helper init
dlssnr-helper doctorStart the helper:
dlssnr-helper startCheck status:
dlssnr-helper statusStop the helper:
dlssnr-helper stopGUI:
dlssnr-guiLaunch a game with the layer enabled:
VKLayer_DLSS5=1 ./your_native_gameFor Steam:
VKLayer_DLSS5=1 %command%
The layer is disabled unless VKLayer_DLSS5=1 is present.
The layer is intended to coexist with the Steam overlay. In Steam's own auxiliary processes it
stands aside rather than presenting through them -- see This Fork. If a game crashes
during Vulkan device creation, make sure you are using 0.2.1-3 or newer.
Tuned settings for individual games live in game_profiles/, grouped by the GPU
they were calibrated on — currently an RTX 5090. Each file is a profile as written by dlssnr_gui,
so it can be copied straight into the folder the GUI reads:
cp game_profiles/rtx5090/AION2.ini ~/.config/dlssnr/profiles/Restart dlssnr-gui afterwards and pick the profile from the dropdown. See
game_profiles/README.md for the list and for how to refresh a profile
after changing it in the GUI.
Steam games run inside the Steam Linux Runtime / pressure-vessel container, which gives the game a
private tmpfs at $XDG_RUNTIME_DIR. Anything the helper puts there is simply not present inside
the game, so the layer would create its own empty mapping at a path that reads identically in the log
and then wait forever for a helper that is answering on the other file:
[dlssnr-layer] [shm] attached /run/user/1000/dlssnr/shm.bin seq_req=0 seq_resp=0
[dlssnr-layer] [shm] no answer in 20 ms x4 (helper not running); passing frames through
For that reason the mapping lives in /tmp/dlssnr-$UID/, which the container bind-mounts from the
host. Nothing needs to be added to the launch options for this; VKLayer_DLSS5=1 %command% is enough.
If you saw the symptom above with an older build, remove the mapping it left behind:
rm -rf "$XDG_RUNTIME_DIR/dlssnr"dlssnr-helper doctor reports a leftover if one is still there.
If you point DLSSNR_SHM somewhere else, that directory has to be visible inside the container as
well. Either keep it under /tmp, or expose it:
PRESSURE_VESSEL_FILESYSTEMS_RW=/home/USERNAME/.local/share/dlssnr VKLayer_DLSS5=1 %command%
Custom compatibility tools are discovered from:
$XDG_DATA_HOME/Steam/compatibilitytools.d
~/.var/app/com.valvesoftware.Steam/data/Steam/compatibilitytools.d
~/snap/steam/common/.local/share/Steam/compatibilitytools.d
$XDG_DATA_DIRS/steam/compatibilitytools.d (each entry, plus /usr/local/share and /usr/share always)
System-wide tools (CachyOS ships Proton-CachyOS under /usr/share/steam/compatibilitytools.d) are
discovered from every directory in $XDG_DATA_DIRS and, because Steam Runtime rewrites that
variable inside its container, from the XDG defaults /usr/local/share and /usr/share regardless.
User directories are scanned first, so a user-installed tool wins ties against a system copy.
List discovered runners:
dlssnr-helper runnersYou can also set a custom runner path manually in:
~/.config/dlssnr/config.ini
Example:
runner_type=proton
runner_path=/path/to/compatibilitytools.d/Proton-CachyOS/protonUseful commands:
dlssnr-helper doctor
dlssnr-helper runners
dlssnr-helper status
dlssnr-helper configIf you previously used an older build, remove stale shared-memory files:
rm -f /tmp/dlssnr_shm.bin
rm -rf "${XDG_RUNTIME_DIR:-/nonexistent}/dlssnr"Current builds use /tmp/dlssnr-$UID/shm.bin by default, so neither games nor the helper need DLSSNR_SHM set manually -- including under Steam's container.
Logs are written to the XDG state directory:
$XDG_STATE_HOME/dlssnr/helper.log
Fallback:
~/.local/state/dlssnr/helper.log
Install build dependencies:
clang,clang++,llvm-ar, andllvm-stripmesonandninjamingw64-gcc-c++(MinGW headers, libraries, and runtime sysroot for the Clang Windows target)qt6-qtbase-develfor the GUIqt6-linguist(Fedora),qt6-l10n-tools(Debian/Ubuntu) orqt6-tools(Arch) for the compiled UI translations -- optional; withoutlreleasethe build just skips them and the interface keeps its built-in English stringsrpm-buildif you want the RPMsglibc-devel.i686,libstdc++-devel.i686,libgcc.i686, andlibatomic.i686for the required 32-bit layer
Vulkan headers are vendored, so no Vulkan devel package is needed.
The build does not need any NVIDIA binary. A top-level dlssnr/ directory -- the NGX DLLs and the
OptiScaler drop the helper is pointed at -- is imported per machine and is gitignored for that
reason; it must never be committed.
Build everything with Clang:
tools/meson-build.shThis coordinates native 64-bit Linux, 32-bit Linux, and Windows GNU PE targets. The Windows binaries are intended to run under Wine or Proton and do not require a native Windows SDK or compiler. Builds are side-effect free; install a package or use the packaging scripts to install the Vulkan layer manifest. The Linux command-line tools are fully static, and the layer/GUI embed their C++ runtimes where supported. The Vulkan loader, Qt, graphics, and system C libraries remain dynamic system dependencies.
Build and package in one step:
./packaging/make-dist.sh tar # + the .tar.gz tarballs (public + personal)
./packaging/make-dist.sh rpm # + RPMs (public + personal)
./packaging/make-dist.sh deb # + DEBs (public + personal)
./packaging/make-dist.sh # + tarballs and RPMs
./packaging/make-dist.sh all # + tarballs, RPMs, and DEBsOutputs:
build/native/layer_linux/libVkLayer_NV_dlssnr.so 64-bit layer
build/linux32/layer_linux/libVkLayer_NV_dlssnr.so 32-bit layer
build/windows/windows/dlssnr_helper.exe Windows NGX helper
build/windows/windows/smoke.exe smoke-test program
build/native/tools/runner_probe runner discovery probe
build/native/tools/dlssnr-shmctl shared-memory settings CLI
build/native/gui/dlssnr_gui Qt GUI
build/native/test_gui/binder_test GUI binder regression test
Start the GUI with:
dlssnr-guiEvery setting is a row in the scrolling list, grouped by what it acts on. Numeric settings are a
slider with an editable number beside it: drag the slider to approximate the value, or type an
exact one into the box and press Enter. The two stay in step. The model's own profile is under
Model, as Style:
Default maps to DLSSNR.Style 0
Natural maps to DLSSNR.Style 1
Cinematic maps to DLSSNR.Style 2
Motion vectors are under Motion:
Estimate motion vectors on by default
Motion quality Fast, Balanced (default), Quality
Motion units Normalised, Pixels (default), UV 0..1
The profile dropdown above the list holds saved profiles. Save writes the current settings under
the name it asks for, pre-filled with the selected profile's name; the ✕ beside an entry
deletes it. Profiles live in ~/.config/dlssnr/profiles/ as plain .ini files, and the dropdown is
filled once at startup, so a file copied in while the GUI is running appears only after a restart.
See Game Profiles for ready-made ones.
The Passes dialog overrides settings for one pass at a time, field by field: each row has its own checkbox, and a field left unchecked follows the global value rather than restating it.
Settings are written to shared memory and take effect on the next processed frame. Closing the GUI requests a helper stop, so the helper does not need to be stopped manually.
The gear menu (bottom right) also holds NGX binaries: import the NVIDIA DLLs into
$XDG_DATA_HOME/dlssnr/binaries, or open that folder to place them yourself. On first launch, if
nvngx_dlssnr.dll is not there, the GUI prompts to import it -- otherwise the helper can only report
"no NGX binaries" and games keep presenting their own frames.
The helper can generate screen-space motion vectors between Frame[N-1] and Frame[N] and bind them to DLSSNR.MVec before calling Feature 18.
Current behavior:
DLSSNR.Depthis left asnullptr.DLSSNR.UseAutoMaskis set to1.DLSSNR.Resetis set on the first frame and on simple CPU-detected scene cuts.- NVIDIA Optical Flow (
VK_NV_optical_flow) is used when available. - The helper keeps optical-flow input images in VRAM and runs the flow pass before
VULKAN_EvaluateFeature(18). DLSSNR.MVecis filled asR16G16_SFLOAThalf-float vectors in source-pixel units, current-frame-to-previous-frame by default.- The flow output is decoded, deadzone-filtered and upscaled entirely on the GPU by a compute pass (one shader variant per flow format,
R16G16_SFIXED5_NVorR16G16_SFLOAT). If that pass cannot be built, estimated motion vectors are disabled rather than converted on the CPU. - Motion-vector quality controls the NVOF performance level and output grid: Fast prefers a smaller grid, Balanced uses a medium grid, and Quality prefers full-resolution flow.
Environment controls:
DLSSNR_MVEC=0 disable synthetic motion vectors
DLSSNR_MVEC_DIRECTION=0 use previous-to-current flow direction instead of current-to-previous
DLSSNR_MVEC_COMPUTE=0 disable the GPU deadzone pass (disables estimated motion vectors)
DLSSNR_MVEC_DEBUG=1 log first few flow/MVec statistics
DLSSNR_SCENE_CUT=0 disable scene-cut reset detection
DLSSNR_SCENE_CUT_THRESHOLD=55 mean luma difference threshold
Transport controls (read by both the layer and the helper):
DLSSNR_DMABUF=0 disable the dma-buf zero-copy transport (host copies instead)
Build:
tools/meson-build.shTest parameter ingestion:
DLSSNR_HELPER_EXE="$PWD/build/windows/windows/dlssnr_helper.exe" DLSSNR_VERBOSE=1 DLSSNR_TIME=1 ./dlssnr-helper start
WINEPREFIX="$HOME/.local/share/dlssnr/prefix/pfx" \
PROTON_ENABLE_NVAPI=1 \
STEAM_COMPAT_DATA_PATH="$HOME/.local/share/dlssnr/prefix" \
VKLayer_DLSS5=1 \
DLSSNR_SMOKE_FRAMES=5 \
"$HOME/.local/share/Steam/compatibilitytools.d/Proton-CachyOS Latest/proton" run "$PWD/build/windows/windows/smoke.exe"Expected helper log lines:
[mvec] NV optical flow enabled ... gpu_convert=1 dir=1 xfer=1
[params] evaluate contract set: ok ... UseAutoMask=1 ... depth=null
[params] MVecScaleX=1.000000 MVecScaleY=1.000000
[mvec] first optical-flow pass completed
[time] passes=1 ... flow=... eval=... total=... ms
If optical flow is unavailable, the helper falls back to zero motion vectors and continues without disabling neural processing.
A game presenting in HDR used to be shown to the model as an 8-bit tone-mapped copy: the highlights
the model exists to judge were compressed away before it ever saw them. With the HDR path on, the
proxy crosses as R16G16B16A16_SFLOAT carrying linear light normalised by the white point, and the
model -- asked to create itself as HDR -- works on the frame's real range.
Detection is automatic. A float swapchain (R16G16B16A16_SFLOAT) is linear light; a 10-bit swapchain
whose colour space is HDR10/PQ carries ST 2084 code, which is decoded to linear nits on the way in
and re-encoded on the way out. A 10-bit swapchain in an SDR colour space is just more precision on a
finished picture and stays on the 8-bit path.
The GUI's HDR input row (Composition tab, Color group) decides what happens with that:
Auto HDR when the swapchain is HDR (default)
Off 8-bit proxy whatever the game presents
Force float16 float proxy even for an SDR swapchain -- an A/B tool, not a preference
dlssnr-shmctl <shm> set hdrmode 0|1|2 does the same from a shortcut.
Three things have the last word over the layer's detection, in this order: the device (it must be able to hold a float16 storage surface), the model (its feature contract is asked for HDR, and if it refuses the helper rebuilds everything 8-bit on its own and says so in the log), and the frame (it is never read at the wrong width -- the frame that switches formats is presented as the game drew it, one frame, rather than misread). The GUI status line shows what was detected and which proxy is live.
The white point means the same thing on both paths -- the composition works in units where 1.0 is paper white -- but on a PQ frame it acts as a multiplier on the fixed 203-nit reference rather than dividing an unknown game scale. Measured white point works on HDR frames too: the meter measures light, not code.
Everything lands in dist/. The tarballs are staged from the coordinated Meson build directories
(running make-dist.sh builds first if the artifacts are missing), and the RPMs install the staged
tarball as their payload, so an RPM build also leaves the tar.gz behind.
./packaging/make-dist.sh # tarballs + RPMs
./packaging/make-dist.sh tar # tarballs only
./packaging/make-dist.sh rpm # RPMs only
./packaging/make-dist.sh deb # DEBs only
./packaging/make-dist.sh all # tarballs + RPMs + DEBsBoth variants are always staged: dlssnr (public, no NVIDIA DLLs) and dlssnr-personal (bundles the
DLLs from binaries/). The public package does not include NVIDIA DLLs. The personal package does --
only redistribute it if you have the rights to do so.
Artifacts:
dist/dlssnr-<version>-<release>-linux-x86_64.tar.gz
dist/dlssnr-personal-<version>-<release>-linux-x86_64.tar.gz
dist/dlssnr-<version>-<release>.fcXX.x86_64.rpm
dist/dlssnr-personal-<version>-<release>.fcXX.x86_64.rpm
-
Bump
Version:in both specs and theDLSSNR_VERSIONdefault inpackaging/make-dist.sh. -
Bump
%global pkg_releasein both specs together. The tarball name is read fromdlssnr.specand both specs unpack that same tarball, so the two releases must match.DLSSNR_VERSION/DLSSNR_RELEASEenv-var overrides are available for throwaway builds. -
Add a
%changelogentry to both specs. -
Build everything and package it:
./packaging/make-dist.sh
Meson tracks compiler and linker changes and rebuilds affected targets, so stale GCC-built binaries cannot slip into a tarball.
RPM:
sudo dnf remove dlssnror:
sudo dnf remove dlssnr-personalTarball installs -- the scripts ship inside the tarball, so run them from the extracted tree (the same tree you installed from; an update's tree removes the files fine too):
./uninstall.sh --userTarball system install:
sudo ./uninstall.sh --systemBoth modes remove the binaries, the desktop entry, the per-architecture layer manifests
(VK_LAYER_NV_dlssnr.*.json) and the environment.d/dlssnr.conf layer-order snippet, so the loader
stops looking for the layer. Add --purge to also remove user config, state, runtime data, and the
managed prefix. The RPM removes the snippet too, but only if it is still exactly what the package
wrote.
If the helper starts and immediately logs shutting down, update to 0.2.1-3 or newer and remove stale runtime state:
rm -f "/tmp/dlssnr-$UID/shm.bin"If a Steam game crashes in steamoverlayvulkanlayer.so, update to 0.2.1-3 or newer.
If the layer logs that it is standing aside, that is Steam's own process rather than the game, and it is expected:
[dlssnr-layer] [layer] standing aside: this is gameoverlayui, not the game
If the layer logs that the frame was not submitted to the queue being presented, that frame's work went to a different queue, so it cannot be ordered behind the capture copy here and is passed through untouched:
[dlssnr-layer] [layer] frame was not submitted to this queue; passing it through rather than taking the application's wait semaphores
If the game stops on its render thread and then reports a watchdog crash, with the layer logging a fence that never landed, the present path gave the frame up rather than waiting on it forever:
[dlssnr-layer] [layer] leg2 fence still pending after 1000 ms; swapchain passes through
[dlssnr-layer] [layer] present fence still pending after 1000 ms; swapchain passes through
The frame is presented untouched -- the application keeps its wait semaphores either way -- so the game keeps running; that frame is simply not neural-rendered.
If a Steam/Proton game logs no answer ... (helper not running) while the helper is waiting for
frames, it is on a different mapping than the helper -- see Steam / Proton
Containers.
If you run Smooth Motion alongside this layer, the two implicit layers can end up in the wrong order
and the frames are layered incorrectly. The installers pin the order via
VK_INSTANCE_LAYERS="VK_LAYER_NV_dlssnr:VK_LAYER_NV_present" in ~/.config/environment.d/dlssnr.conf
(see Install From Tarball); if you installed before 0.2.5-3, add that file
yourself and log out and back in.
For browser video, if Chrome is streaming but the panel says "no presenter — waiting for first frame", check in order:
- Is the tab armed (icon clicked or on the auto-site list)? Unarmed tabs never enable the pass.
- Does the native bridge report
chrome.readyandhelper.statusas running? An old long-lived native host can keep stale readiness logic after an update — reload the extension to respawn it. - Does the layer log show a ROI/swapchain size mismatch, e.g.
swapchain 1920x1048 is not the ROI's 1920x1080; presenting it raw? Update the extension; the ROI must use the content-area size. - Does the log show
vkAllocateMemory failed for ... VkResult -2followed by "composition cannot run here"? Lowerset_model_resolutionin the active video profile (e.g.1.0instead of1.3); supersampling can exceed the GPU's device-memory budget while a browser is streaming.
A GPU process "Context lost" restart can happen while the composition surfaces fail to allocate;
with a supported model resolution the layer comes back and layer_frames starts climbing again.
- The helper and game run in separate processes. Where the driver allows it, frames cross as
dma-buf memory (
VK_EXT_external_memory_dma_buf) and stay in VRAM end to end;DLSSNR_DMABUF=0turns that off. The helper exports both images that cross the boundary and names them in the shared header; the layer adopts each descriptor withpidfd_getfd(falling back to/proc/<pid>/fdon older kernels), which needs the same uid and a permissive yama setting (ptrace_scope0). Any step that cannot be honoured -- no extension, a refused export, a blocked descriptor adoption -- falls back to the host-transport path, and then to plain staging copies, so the frame always crosses somehow. - The layer currently assumes a present-time swapchain layout that works for the tested games and emulators. Some games may need layout handling work.
- The present path does not consume the application's wait semaphores; they are handed back on the present unchanged. The capture copy is ordered behind the application's own submit by queue order, and only when that submit went to the queue being presented -- otherwise the frame is passed through untouched.
- Steam runtime issues may require per-game or per-runtime debugging.
- Do not use the personal package publicly unless you are certain you may redistribute the bundled NVIDIA binaries.