Skip to content

Commit

Permalink
Merge pull request #30 from Vingian/patch-1
Browse files Browse the repository at this point in the history
Nvidia DLSS/Vulkan
  • Loading branch information
mactan-sc authored Aug 12, 2024
2 parents ec6b078 + 0482068 commit 67b0724
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions wiki/Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,13 @@
- If you still have issues or are running applications like OBS, you may also have to limit the vram the game sees to free up some vram for other applications:
`dxgi.maxDeviceMemory = 6144`

#### DLSS(Deep Learning Super Sampling) / Vulkan
- There is a [memory allocation issue with LibCUDA](https://github.com/jp7677/dxvk-nvapi/issues/174#issuecomment-2227462795), where it attempts to allocate in a specific area already occupied by the game.
- A possible solution would be patching LibCUDA file increasing this area.
- Copy the 64-bit `libcuda.so`(usually `/usr/lib` or run `whereis libcuda.so`) to any directory and run the command `echo -ne $(od -An -tx1 -v libcuda.so | tr -d '\n' | sed -e 's/00 00 00 f8 ff 00 00 00/00 00 00 f8 ff ff 00 00/g' -e 's/ /\\x/g') > libcuda.patched.so` to generate the patched version(`libcuda.patched.so`).
- Use the environment variable `LD_PRELOAD` to load the patched version, for example: `LD_PRELOAD=/path/to/the/libcuda.patched.so:$LD_PRELOAD`
- Don't forget to enable DXVK-NVAPI.


***

Expand Down

0 comments on commit 67b0724

Please sign in to comment.