Skip to content

About

DLSS Model E upscaler mod for Cyberpunk 2077 on GTX 16 cards (compute shaders, no tensor cores)

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

21 Commits

Folders and files

Repository files navigation

Tensorless

Upscaler mod for Cyberpunk 2077 on GTX 16 cards (made on a GTX 1660 Super, which has no tensor cores). It runs the DLSS "Model E" network with ordinary compute shaders, so the game's DLSS Super Resolution option works on a card that normally cannot use it. Frame generation is planned.

Status: test build. Runs in the game. Speed and image quality are being worked on, see the pull requests.

Po polsku: mod do Cyberpunka 2077 na kartach GTX 16 (bez rdzeni tensorowych). Uruchamia sieć DLSS Model E na zwykłych shaderach, dzięki czemu w ustawieniach gry da się wybrać DLSS. Instrukcja dla gracza: dist_files/CZYTAJ.txt.

How it works

  • Loading: a proxy DLL next to the game exe (winhttp.dll, version.dll, winmm.dll or dxgi.dll; the installer picks a free name so it does not replace RED4ext or Cyber Engine Tweaks). It forwards every system export and patches the game's imports of NVIDIA Streamline (sl.interposer.dll): DLSS is reported as supported, and slEvaluateFeature(DLSS) runs the network on the game's colour, depth and motion vectors.
  • Network: the plan (layers, buffers, arguments) comes from the HelixSR 1.8.1 sources (Apache 2.0, in third_party/). Most layers are NVIDIA's kernels translated from PTX to HLSL on the user's PC. The encoder layers have own kernels (src/shaders/) written from the layer's measured behaviour.
  • Menu: Dear ImGui drawn at Present, Insert key: upscaler options, motion vector units, FPS / frame time graphs.
  • FSR slot: an alternative build that replaces the game's amd_fidelityfx_upscaler_dx12.dll.

What is not in this repository

No NVIDIA weights, kernels or PTX. They are made on the user's own PC from the user's own nvngx_dlss.dll and stay in build/, which is never committed (see .gitignore and THIRD_PARTY_NOTICES.md).

Layout

Path What
src/ DLL: sl_main.cpp (DLSS slot), main.cpp (FSR slot), runner.cpp (runs the network), overlay.cpp (menu)
src/shaders/ input preparation, own network kernels
src/test/ host programs that load the DLL outside the game
tools/ build scripts (build_dll.py), kernel tests (test_kernels.py, frame_test.py, my_conv_test.py)
dist_files/ installer scripts and the player's readme (Polish)
third_party/ HelixSR 1.8.1 setup sources (Apache 2.0)

Building

Needs llvm-mingw, the FFX API and Streamline headers, Dear ImGui (all in deps/, not committed), DXC and the local network build in build/.

set PYTHONPATH=tools
python tools/build_dll.py --dxc <path to dxc.exe>

Output: build/dist/.

Notices

Not affiliated with or endorsed by NVIDIA, AMD or HelixSR. See THIRD_PARTY_NOTICES.md.

About

DLSS Model E upscaler mod for Cyberpunk 2077 on GTX 16 cards (compute shaders, no tensor cores)

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages