https://bugs.winehq.org/show_bug.cgi?id=51697
Bug ID: 51697 Summary: Far cry 5, frequent stuttering due to ntdll spam Product: Wine-staging Version: 6.16 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: gab.pulcio@gmail.com CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
Created attachment 70570 --> https://bugs.winehq.org/attachment.cgi?id=70570 12.5MB log, mostly spam from ntdll that causes a lot of lag in-game, in my opinion
DXVK is not the issue as far as I know, since it doesn't throw any error, NTDLL though, spams like hell, since the log is 12.5MB and that makes the game laggy very frequently, sometimes my FPS dips to 15/20 for various seconds (and it's not the CPU throttling lag, since I disabled PROCHOT response and undervolted the CPU)
https://bugs.winehq.org/show_bug.cgi?id=51697
--- Comment #1 from Gabriele gab.pulcio@gmail.com --- https://mega.nz/file/F58HCKwb#twzX6cTEP7wDTSSbM_5UkUHMn5jwLY67j1w6q-JXvbE
That's the proof, here you can see it in action, notice the lag, especially when I disable RTGI so, more FPS = even more noticeable stuttering
https://bugs.winehq.org/show_bug.cgi?id=51697
Gabriele gab.pulcio@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |performance
https://bugs.winehq.org/show_bug.cgi?id=51697
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Product|Wine-staging |Wine Component|-unknown |ntdll
--- Comment #2 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- This appears to be caused by the RTL_CRITICAL_SECTION_FLAG_DYNAMIC_SPIN not being supported.
Affect plain wine as well.
https://bugs.winehq.org/show_bug.cgi?id=51697
--- Comment #3 from Zebediah Figura z.figura12@gmail.com --- Well, the proof of that diagnosis is that WINEDEBUG=-ntdll fixes performance. Does it?
https://bugs.winehq.org/show_bug.cgi?id=51697
--- Comment #4 from Gabriele gab.pulcio@gmail.com --- (In reply to Zebediah Figura from comment #3)
Well, the proof of that diagnosis is that WINEDEBUG=-ntdll fixes performance. Does it?
Strangely enough, it doesn't, it could be a DXVK issue "D3D11Buffer::QueryInterface: Unknown interface query" spam in the log file, still how is RTL_CRITICAL_SECTION_FLAG_DYNAMIC_SPIN going to be supported?
https://bugs.winehq.org/show_bug.cgi?id=51697
--- Comment #5 from Gabriele gab.pulcio@gmail.com --- (In reply to Zebediah Figura from comment #3)
Well, the proof of that diagnosis is that WINEDEBUG=-ntdll fixes performance. Does it?
All right, I ran another series of tests. Game will open much faster with -ntdll and the thing that I said for DXVK, forget it, that isn't the problem. Apparently the major issue that I have is coming from the HD Texture pack, when I disable it, most of the freezes are gone, still sometimes, the ndtll spam causes me a few stutters
https://bugs.winehq.org/show_bug.cgi?id=51697
--- Comment #6 from Zebediah Figura z.figura12@gmail.com --- (In reply to Gabriele from comment #5)
(In reply to Zebediah Figura from comment #3)
Well, the proof of that diagnosis is that WINEDEBUG=-ntdll fixes performance. Does it?
All right, I ran another series of tests. Game will open much faster with -ntdll and the thing that I said for DXVK, forget it, that isn't the problem. Apparently the major issue that I have is coming from the HD Texture pack, when I disable it, most of the freezes are gone, still sometimes, the ndtll spam causes me a few stutters
Okay, but do you get a measurable difference between +ntdll and -ntdll, with all other factors remaining the same?
It's possible that logs cause performance problems, but it's generally more likely that they coincide with something else that is causing performance problems.
Note also that DXVK is not supported in this bug tracker; if you encounter bugs while using DXVK please file a bug report with the DXVK project.
https://bugs.winehq.org/show_bug.cgi?id=51697
--- Comment #7 from Gabriele gab.pulcio@gmail.com --- (In reply to Zebediah Figura from comment #6)
(In reply to Gabriele from comment #5)
(In reply to Zebediah Figura from comment #3)
Well, the proof of that diagnosis is that WINEDEBUG=-ntdll fixes performance. Does it?
All right, I ran another series of tests. Game will open much faster with -ntdll and the thing that I said for DXVK, forget it, that isn't the problem. Apparently the major issue that I have is coming from the HD Texture pack, when I disable it, most of the freezes are gone, still sometimes, the ndtll spam causes me a few stutters
Okay, but do you get a measurable difference between +ntdll and -ntdll, with all other factors remaining the same?
It's possible that logs cause performance problems, but it's generally more likely that they coincide with something else that is causing performance problems.
Note also that DXVK is not supported in this bug tracker; if you encounter bugs while using DXVK please file a bug report with the DXVK project.
every freeze is gone with -ntdll and the game will load much faster
https://bugs.winehq.org/show_bug.cgi?id=51697
Alexey Kuznetsov axet@me.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |axet@me.com
--- Comment #8 from Alexey Kuznetsov axet@me.com --- I have WINEDEBUG=-all but game still have fps drop spikes. It drop FPS every 3 seconds no matter what I'm doing: no mouse move, looking at water, looking at map or even using PHOTO mode, when scene is static. I tried different wine versions winehq 7.20, lutris 7.2, proton 7.0-4 (game wont start)
https://bugs.winehq.org/show_bug.cgi?id=51697
--- Comment #9 from Alexey Kuznetsov axet@me.com --- I've tested different versions of the game. All of them has fps drops. Running game (same binaries) under Windows has no issues.
Also I've tested WINEDEBUG=-all,+file channel to see if here is intense file IO. But noting comes up. It not using any IO havely.
htop showing CPU usage increase from 350% up to 450% for FarCry5.exe process for moments of fps drops.
Issue happens during all game content starting from initial game video (after intro), during first mission, even in PHOTO mode and uring benchmark.
I tried to disable WiFi - no changes.
Sometimes game works fine, very rarely. I can play few mission and without lags. Mostly first few missions. The rest of the game I never seen runs smoothly. I did clean all wine related files inside prefix or reinstall the game compeletly or drop ~/.cache/*shaders* files but no idea what is causing it or why game runs fine sometimes.
https://bugs.winehq.org/show_bug.cgi?id=51697
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |o.dierick@piezo-forte.be
--- Comment #10 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- (In reply to Alexey Kuznetsov from comment #9)
Sometimes game works fine, very rarely. I can play few mission and without lags. Mostly first few missions. The rest of the game I never seen runs smoothly. I did clean all wine related files inside prefix or reinstall the game compeletly or drop ~/.cache/*shaders* files but no idea what is causing it or why game runs fine sometimes.
Hello,
You may have a different issue.
How much system memory (RAM) do you have?
Regards.
https://bugs.winehq.org/show_bug.cgi?id=51697
--- Comment #11 from Alexey Kuznetsov axet@me.com --- I have a lot of ram 16gb. and 5gb goes to video RAM (it dynamically shared between RAM and VRAM as I know).
No other games lagging like that. Even Far Cry 4, Doom Eternal works fine. Also Windows works at Ultra settings with out any issues with 40 FPS. Only wine stuttering.
Just in case, all logs and kernel versions.
https://linux-hardware.org/?probe=0796c7d436
https://bugs.winehq.org/show_bug.cgi?id=51697
--- Comment #12 from Alexey Kuznetsov axet@me.com --- My guess is - some wine methods are not optimized. When game calls a lot of those methods in background it slows the game.
For example: the game Path of Exile works bad with winehq and with a lot of monsters drop FPS to 0, game stuttering a lot. But using lutris wine I do not have this issue and play game no problems even with a lot of monsters on screen lutris do not drop FPS. I guess some intense IO operations were optimized under lutris wine.
I tried lutris wine with Far Cry 5 but no success, same lags.
https://bugs.winehq.org/show_bug.cgi?id=51697
--- Comment #13 from Alexey Kuznetsov axet@me.com --- Another possibility: since those lags not related to file operations (I ran +file) and lags persist during PHOTO MODE (when no physics and quests calulated) and during in-game video it could be Far Cry 5 EasyAntiCheat service activity.
For example this EAC trying to scan binary for injected libraries and doing it using not optimized / slow wine methods. But I also tried to disable EAC using hexedit instructions from PCGaming web site but no luck - lags are here. Who know it maybe still trying to scan.
https://bugs.winehq.org/show_bug.cgi?id=51697
--- Comment #14 from Gabriele gab.pulcio@gmail.com --- (In reply to Alexey Kuznetsov from comment #13)
Another possibility: since those lags not related to file operations (I ran +file) and lags persist during PHOTO MODE (when no physics and quests calulated) and during in-game video it could be Far Cry 5 EasyAntiCheat service activity.
If you disable the HD texture pack the problem will go away, the problem is: why? It doesn't even fill my VRAM, something is clearly wrong.
https://bugs.winehq.org/show_bug.cgi?id=51697
--- Comment #15 from Alexey Kuznetsov axet@me.com --- I do not have HD textures installed. But turns out I had to use proton-tkg-7.6.r12.g51472395-x86_64 (wine-tkg) to make problem go away!
https://bugs.winehq.org/show_bug.cgi?id=51697
--- Comment #16 from Alexey Kuznetsov axet@me.com --- After completing the game Far Cry 5 (a lot of hours without any fps drops) it starts stuttering again even with proton-tkg-7.6.r12.g51472395-x86_64. I tried to restart PC and changing wine versions... Nothing helping. I guess it is game protection (anti-cheat or DRM) issue which happens periodically. Far Cry 6 or 4 works fine, never had this issue.
https://bugs.winehq.org/show_bug.cgi?id=51697
Neko-san nekoNexus@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nekoNexus@protonmail.ch