-
Notifications
You must be signed in to change notification settings - Fork 207
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
NVAPI causing huge constant stuttering regression #2253
Comments
Using |
Do you have LatencyFlex set up on your system? |
Could you also switch to normal Proton Experimental and see what happens using that? |
Tried using proton experimental just now, same issue.
I haven't set up anything extra so if it's not setup by proton automatically or by kernel / cachy tweaks I don't think I have it. |
I installed https://aur.archlinux.org/packages/latencyflex-proton-ge-custom Also tried with reflex setting ingame enabled and disabled and same result either way. |
Friendly reminder that if you're on Proton 9+, I have a few things for you to try (preferably while running Proton Experimental):
|
Thanks, |
Sorry, I didn’t wanted you to install lfx, I just wanted to be sure that haven’t set it up. Please remove lfx if you have it installed now. You don’t need it with an NVIDIA gpu.
Yes, this is expected. This switch lets your GPU appear as Ampere generation which doesn’t support frame generation. |
Cool, uninstalled
Yes, makes sense. |
Right, I've seen a very similar issue with Ghost of Tsushima before which prompted me to apply the same workaround there: jp7677/dxvk-nvapi#186, but that was before Proton had Frame Generation so nothing of value was lost anyway when we disabled reporting Ada GPUs for this game. But the thing with GoT is that it was bugged only when DLFG would be nonfunctional anyway. Now that Proton supports it, this workaround was reverted and GoT does not exhibit this problem anymore. Can you try removing the variable, enabling Frame Generation, and checking then if the issue still persists? If yes, please get me a log from such a run. (And please restart the game after enabling DLFG, it's known to behave quite… janky otherwise.) |
Okay so did with Cyberpunk (marvel rivals just gives me a black screen with frame generation) Log was getting spammed, so had to only have a run for like 20 seconds. |
Actually got Marvel Rivals frame generation to work, but the stutter still exists. Log here: |
Welp. That's… not good, but also not something that I'd consider actionable for us, after all we're just forwarding the calls to Nvidia driver. If you are okay with losing DLFG, you can keep using the environment variable but it's not a good long term solution by any mean. I guess we should try to have someone reproduce your findings, and with enough points of data attract some attention from Nvidia engineers. |
Thanks for your help. And yes sounds good. I'm happy to provide any more info if you need help reproducing. |
Note that there is still something specific for your setup. Especially CP2077 gets a lot of attention and should just work just fine with all whistles and bells on your GPU generation. |
Any thoughts on what it could be or things I could try? I've tried different kernels, switching from Nvidia open to closed and then turning off GSP. |
Did you already tried with the most basic setup and a well known title (e.g. CP2077)? So e.g. a plain Gnome Desktop (X11 or Wayland) without tweaks (e.g starting without VRR or tearing), with regular Proton (Experimental) with a clean prefix, no overlays, no configuration settings, fresh restart (thus no resume from suspend) etc? Once this gives desired results, you could work forward one step at a time and hopefully detect what introduced your issue. PS: Very likely unrelated, but i want to mention this one as well: doitsujin/dxvk#4436 (comment) |
Just tried starting as clean as possible:
Still not getting the desired results.
Thanks for this, I used this to get mangohud and LD_PRELOAD="" to work together. |
@ethanh20009 You might give the linked PR a try. |
I tried to give it a look. This was my first time manually compiling and using vkd3d proton so please let me know if I've done a step wrong and I can test again. What I did when testing PR fixCompile using initial findings:On nvidia 570 drivers, with proton bleeding edge Overall, I've found the PR to make no difference. However newer versions of proton and vkd3d-proton (main branch) seem to have eliminated stuttering on marvel rivals without frame gen for 4000 series (no steam flags). It stutters like before (when previously I did not enable frame gen) but this time exclusively when frame gen is enabled. On cyberpunk with frame gen enabled, I don't have stutters anymore, but frames are displayed in an inconsistent order. With fix:
|
Instead of building yourself, you can also grab an artifact from GitHub CI here: https://github.com/HansKristian-Work/vkd3d-proton/actions/runs/12994911507 The logs should show the exact version at the start, this confirms that you are running the correct build (or not). Edit: This PR jp7677/dxvk-nvapi#244 should fix the |
Split the logs using VKD3D_LOG_FILE=/cyberpunkvklog.txt Error spam is gone, but frame jumping issue remains. I took a slow mo to show. Ran with the PR, confirmed using PR by build id. Got it to work by moving dlls next to cyberpunk exe. No difference. Weirdly, I had one run running main version (without PR) and it worked perfectly once. |
Is that the same issue? In your original post with videos i focused on the frametime bumps in mangohud since that is all i can notice is off in it. That is what the vkd3d-proton PR above should handle Edit: Or did i misunderstand that there isn't only one issue reported here? |
You're right, there are multiple issues. Using latest on main however the issue is no longer present anyway with frame time spikes without frame gen. There is a separate issue now where frames on CP 2077 with frame gen display in wrong order. Pr does not fix. I need to test marvel rivals with frame gen with the fix. At the moment it stutters only when frame gen is enabled. (This is better than original issue where it stuttered regardless on 4000 series) |
Running any DX12 title with
PROTON_LOG=1 LD_PRELOAD="" PROTON_HIDE_NVIDIA_GPU=0 PROTON_ENABLE_NVAPI=1 mangohud %command%
now results in a huge amount of stuttering. On my VA panel, it causes my screen to flicker with VRR.
Had no issues before on ProtonGE 18 (the most recent version without this issue).
With stutter:
2024-12-12.15-53-10.mov
Without (using protonge18):
2024-12-12.15-56-51.mov
I can fix stutters by PROTON_HIDE_NVIDIA_GPU=1 or by using older version.
Software information
Marvel Rivals (for example)
Ultra settings,
No frame gen
Dlss quality
System information
Log files
steam-2767030.log
From looking at the logs I see a likely culprit being spammed...
dxvk-nvapi:<-NvAPI_D3D12_SetAsyncFrameMarker: No implementation
The text was updated successfully, but these errors were encountered: