Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Nvidia Reflex patches. #104

Conversation

loathingKernel
Copy link

@loathingKernel loathingKernel commented Nov 22, 2023

The vkd3d-proton patch had to be rebased, nothing major though. Test build available here and here soon(tm)

Requires at least Nvidia 545.xx drivers and PROTON_ENABLE_NVAPI=1.

The patches are from the following pull requests:
wine
dxvk-nvapi
vkd3d-proton
dxvk

Thanks also goes to @ptr1337 for initially building and testing the patchset.

Requires at least Nvidia 545.xx drivers.

The patches are from the following pull requests:
[wine](ValveSoftware/wine#200)
[dxvk-nvapi](jp7677/dxvk-nvapi#147)
[vkd3d-proton](HansKristian-Work/vkd3d-proton#1739)
[dxvk](doitsujin/dxvk#3690)

Thanks also goes to @ptr1337 for initially building and testing the patchset.
@ptr1337
Copy link

ptr1337 commented Nov 22, 2023

Don't forget that the Vulkan Headers for vkd3d and dxvk needs to be updated to commit bbe0f575ebd6098369f0ac6c6a43532732ed0ba6 @GloriousEggroll

@loathingKernel
Copy link
Author

loathingKernel commented Nov 22, 2023

Don't forget that the Vulkan Headers for vkd3d and dxvk

I have added the required update to these libraries directly in protonprep-valve-staging.sh so it doesn't require any further intervention in that regard.

@Idcrafter
Copy link

Idcrafter commented Dec 4, 2023

i tried this build and in apex does it seem to work but not for Cyberpunk 2077 where it crashes when turning any option on with this in the console.

Assertion failed: !status && "vkGetLatencyTimingsNV", file ../src-wine/dlls/winev
ulkan/loader_thunks.c, line 4434

pid 901203 != 901202, skipping destruction (fork without exec?)

i have Nvidia 545.29.06 drivers and have the required vulkan extension for it.
my launch options: PROTON_ENABLE_NVAPI=1 PROTON_ENABLE_NGX_UPDATER=1 VKD3D_FEATURE_LEVEL=12_2 PROTON_HIDE_NVIDIA_GPU=0 VKD3D_CONFIG=dxr,force_static_cbv MANGOHUD=1 gamemoderun %command% --intro-skip --launcher-skip --skipStartScreen

@ParetoOptimalDev
Copy link

I can also confirm that this worked for me in that it let me enable reflex, but I still have stutters/etc.... I see the poster above has their launch options so I'll still those and see if they help.

My issues might be hyprland related though (even though I have the config patch).

@Idcrafter
Copy link

for more context i forgot is i use Fedora 39 with KDE Plasma 5.27.10 on Wayland.

@Weikugian
Copy link

Weikugian commented Dec 30, 2023 via email

@loathingKernel
Copy link
Author

@Weikugian because of the way github resolves references to issues and PRs, the PRs in this repo are getting associated with issues on Valve's repo. It's a github problem.

@ParetoOptimalDev
Copy link

I can also confirm that this worked for me in that it let me enable reflex, but I still have stutters/etc.... I see the poster above has their launch options so I'll still those and see if they help.

My issues might be hyprland related though (even though I have the config patch).

Wow, on KDE+X11 this makes all Apex Legends stuttering go away completely!

However it still has lag on:

  • KDE / wayland
  • hyprland /wayland

I don't think it's because of this PR, but perhaps a useful data point for future bug reports.

@ParetoOptimalDev
Copy link

I can also confirm that this worked for me in that it let me enable reflex, but I still have stutters/etc.... I see the poster above has their launch options so I'll still those and see if they help.
My issues might be hyprland related though (even though I have the config patch).

Wow, on KDE+X11 this makes all Apex Legends stuttering go away completely!

However it still has lag on:

* KDE / wayland

* hyprland /wayland

I don't think it's because of this PR, but perhaps a useful data point for future bug reports.

Please let me know if anyone is running Apex or similar games with this stuttering issue on any wayland desktop environment or window manager too, since I'd prefer to use wayland if it doesn't have worse performance here.

@ryanmusante
Copy link

Are Nvidia 545.xx still.required or will the vulkan dev 535.xx be suitable?

@GloriousEggroll GloriousEggroll marked this pull request as ready for review January 7, 2024 05:03
@GloriousEggroll GloriousEggroll merged commit ff797af into GloriousEggroll:master Jan 7, 2024
@Idcrafter
Copy link

@ryanmusante if you have them installed then can you check if they work if this command returns 2 low_latency extensions:
vulkaninfo | grep -i low_latency

@Idcrafter
Copy link

@ParetoOptimalDev i do run Apex on wayland and get no stutters but i did not try it on X11 and am not able to test X11.

@Enderteck
Copy link

Is this implemented in GE-Proton-9.2 ?

I can't find the option on OW2. I'm on the latest Nvidia Drivers on Fedora 39 Gnome + Wayland.

PROTON_ENABLE_NVAPI=1 %command% on Steam doesn't change a thing

@ptr1337
Copy link

ptr1337 commented Mar 22, 2024

Is this implemented in GE-Proton-9.2 ?

I can't find the option on OW2. I'm on the latest Nvidia Drivers on Fedora 39 Gnome + Wayland.

PROTON_ENABLE_NVAPI=1 %command% on Steam doesn't change a thing

No

@Enderteck
Copy link

Sadge

wasn't it released nearly two weeks before tho ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
8 participants