https://bugs.winehq.org/show_bug.cgi?id=46976
Bug ID: 46976 Summary: All games suffer from moderated to severe stuttering with mouse polling ~1000 Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: xinput Assignee: wine-bugs@winehq.org Reporter: zeioth@hotmail.com Distribution: ---
Description: Any game running over Wine will stutter under the next conditions:
How to reproduce: * Use a mouse with a polling rate of 1000. * Open any game with wine, using any frametimes measurement tool. * Move the camera quickly in circles. You will experience severe stuttering and frametimes spikes. * The issue is solved when the mouse use a polling rate of 125hz
This issue DOESN'T affect linux native games. This fact has been tested with the games: * Bioshock: Infinite * Portal 1
This issue DOES Affect the next Wine (non DXVK) games: * Doom 2016
This issue DOES affect the next wine games: * Sekiro * Quake Champions * The witcher 3 * Quake Champions * Paladins * And every other game I've tested
Wine versions tested: * 3.16 stating + dxvk 0.61 (Can reproduce) * 3.18 stating + dxvk 0.61 (Can reproduce) * 3.20 tkg + dxvk 0.61 (Can reproduce) * 4.0 + dxvk 0.61 (Can reproduce) * 4.5 + dxvk 0.61 (Can reproduce) * 4.5 + dxvk 1.0.2 (Can reproduce) * 4.5 (Can reproduce) -> Pure wine on command line, no lutris, dxvk... etc. * esync-staging-pba-3.16 + dxvk 0.61 -> This build doesn't present FPS drops when the player move the camera. In sekiro, the camera jiggers instead. All other games run without camera stuttering.
Video demostration: https://youtu.be/5dAHbvSS-P8
To find more details about this issue, please read: * https://github.com/ValveSoftware/Proton/issues/2455#issuecomment-480502473 * https://forum.winehq.org/viewtopic.php?f=8&t=32235
Personal notes: Feel free to ask me anything you need. I'm willing to help as much as I can. Regards.
https://bugs.winehq.org/show_bug.cgi?id=46976
--- Comment #1 from zeioth@hotmail.com --- Doom 2016 is recommended for testing this issue, since it provides it own frametimes tool, and run on pure wine out of the box (you can enable the frametimes tool in the in-game settings).
You can run the game with: WINEPREFIX="~/doom" "~/doom/drive_c/Games/Doom 2016/DOOMx64vk.exe" > ~/doom2016.log
https://bugs.winehq.org/show_bug.cgi?id=46976
--- Comment #2 from zeioth@hotmail.com --- System info: * Distro: Arch Antergos (XFCE+Xorg) * CPU: Ryzen 1700 * Memory: 16 Gb * GPU: Nvidia 1070 * Mouse: Zowie EC2 B
https://bugs.winehq.org/show_bug.cgi?id=46976
pattietreutel katyaberezyaka@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |katyaberezyaka@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=46976
--- Comment #3 from zeioth@hotmail.com --- Proof that my mouse is actually running at 1000hz: https://i.imgur.com/qiFh8EU.png
https://bugs.winehq.org/show_bug.cgi?id=46976
Taha t729587@nwytg.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |t729587@nwytg.net
--- Comment #4 from Taha t729587@nwytg.net --- I can't reproduce this with wine 4.5 with Doom (2016). I also play Unreal Tournament 4 and this bug doesn't happen there either. I tried both 1000 Hz and 125 Hz and there was no difference.
https://bugs.winehq.org/show_bug.cgi?id=46976
--- Comment #5 from Taha t729587@nwytg.net --- System info: * Distro: Arch (KDE+Xorg) * CPU: i5 6400t * Memory: 16 Gb * GPU: Nvidia 1060 * Mouse: Logitech G305
https://bugs.winehq.org/show_bug.cgi?id=46976
--- Comment #6 from Taha t729587@nwytg.net --- Does the bug still occur if you manually disable the compositor in XFCE? I am going to try Quake Champions using proton to see if I can reproduce it there.
https://bugs.winehq.org/show_bug.cgi?id=46976
--- Comment #7 from zeioth@hotmail.com --- It's reproducible with, and without the compositor enabled. Also, this bug seems to be much more obvious in games frame capped for some reason.
https://bugs.winehq.org/show_bug.cgi?id=46976
--- Comment #8 from zeioth@hotmail.com --- Same bug, on Sekiro: https://www.youtube.com/watch?v=r9iIK2k19QM&feature=youtu.be
(Sorry for the video quallity)
https://bugs.winehq.org/show_bug.cgi?id=46976
--- Comment #9 from Taha t729587@nwytg.net --- I couldn't reproduce with Quake Champions with or without the FPS cap. esync is disabled since that game doesn't play nicely with it. I am running linux 4.19. I'll try Sekiro since it seems to have very visible spikes.
https://bugs.winehq.org/show_bug.cgi?id=46976
--- Comment #10 from zeioth@hotmail.com --- In sekiro you will notice it inmediately using mouse polling 1000, even without the frametimes graph.
https://bugs.winehq.org/show_bug.cgi?id=46976
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |o.dierick@piezo-forte.be
--- Comment #11 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
Possible duplicate of bug 33643.
Regards
https://bugs.winehq.org/show_bug.cgi?id=46976
--- Comment #12 from Taha t729587@nwytg.net --- Could not reproduce with Sekiro either: https://www.youtube.com/watch?v=uE0_NZUzf-E
Mouse rate: https://i.imgur.com/797BoLx.jpg
I ran the game with Lutris's tkg-protonified-faudio-4.5 with DXVK and without esync. I am not using a legit copy so that might be why but I couldn't reproduce with the free quake champions either
https://bugs.winehq.org/show_bug.cgi?id=46976
--- Comment #13 from zeioth@hotmail.com --- Thank you for your response Taha. I'm gonna do my best to isolate the issue. Could you please post the output of journalctl -f when you plug the mouse?
https://bugs.winehq.org/show_bug.cgi?id=46976
--- Comment #14 from Taha t729587@nwytg.net --- https://pastebin.com/raw/BBZm7mw2
Isolating this issue seems like a major pain. I would personally try a different computer first or maybe dual boot (with different configurations like a different distro or DE) and use a different mouse.
https://bugs.winehq.org/show_bug.cgi?id=46976
zeioth@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WORKSFORME
--- Comment #15 from zeioth@hotmail.com --- Indeed! But I think I solved the issue!!
I tested my mouse in another laptop, and I couldn't reproduce the issue. It seemed to be a hardware issue somehow. So I checked my motherboard's page: https://i.imgur.com/lqglwOo.png
And bingo. After flashing the update, the stuttering issue dissapeared. I think we can close this issue. I'll inform all the other people affected and hopefully it will solve their problem too. I gave you a lot of work. Thank you so much Taha.
Solution tested with:
* Sekiro * Quake Champions * Doom 2016
https://bugs.winehq.org/show_bug.cgi?id=46976
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|WORKSFORME |NOTOURBUG
--- Comment #16 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
Glad to know that you found a fix for your issue.
I change the resolution to NOTOURBUG, because the cause was identified as a bug in the firmware.
Regards
https://bugs.winehq.org/show_bug.cgi?id=46976
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #17 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Closing.
https://bugs.winehq.org/show_bug.cgi?id=46976
Ole Erik Brennhagen winehq.eloelo@spamgourmet.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winehq.eloelo@spamgourmet.c | |om
--- Comment #18 from Ole Erik Brennhagen winehq.eloelo@spamgourmet.com --- Hi,
I'm experiencing this issue on multiple machines with different motherboards and CPUs.
Some games are much worse than others. Final Fantasy XIV: A realm reborn for instance is highly affected.
While it's possible that many, many motherboards have firmware that cause the issue: I'd like to propose that it's investigated if any patches can be added to wine to fix/workaround this issue. Especially considering Windows works perfectly.
https://bugs.winehq.org/show_bug.cgi?id=46976
perttuvep@protonmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |perttuvep@protonmail.com
--- Comment #19 from perttuvep@protonmail.com --- I'm getting this problem with Ryzen 3600X on Asrock AB350 Pro4, updated to latest BIOS v. 6.00. Razer Deathadder Elite mouse.
Didn't have the problem back on my intel rig. Going to try a clean install on another disk tomorrow. Fiddled around in the bios setup switching everything I could think of with no luck. Also tried the usual suspect kernel parameters(noapic, nohpet, acpi_osi=Linux ..).
https://bugs.winehq.org/show_bug.cgi?id=46976
--- Comment #20 from perttuvep@protonmail.com --- It also seems like the problem still occurs with lower polling rates, just less noticeable. Try doing a long swipe with constant speed to see the cpu times spike in vkDoom.
https://bugs.winehq.org/show_bug.cgi?id=46976
Rusty Shackleford r9shackleford@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |r9shackleford@gmail.com
--- Comment #21 from Rusty Shackleford r9shackleford@gmail.com --- This was one of the first results when searching for polling issues with wine games. I just wanted to chime in and agree that it's not a wine bug — I fixed this by switching my mouse from a USB3 port to a USB2 port after reading the comments here. Hope that helps someone else who stumbles upon this.
https://bugs.winehq.org/show_bug.cgi?id=46976
Mathieu Comandon strider@strycore.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |strider@strycore.com
--- Comment #22 from Mathieu Comandon strider@strycore.com --- This should be re-opened. Wine is the only piece of software having those kind of issues. While this is caused by external factors such as firmwares and USB ports but the fact remains that only Wine is affected by this and it's likely that improvements in the way Wine deals with input will solve the problem.
https://bugs.winehq.org/show_bug.cgi?id=46976
John E john.ettedgui@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |john.ettedgui@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=46976
Tom B tom@r.je changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tom@r.je
--- Comment #23 from Tom B tom@r.je --- Please reopen this. It is a Wine bug because it didn't happen prior to Wine 5.0. Using Wine 4.11, this does not occur.
https://bugs.winehq.org/show_bug.cgi?id=46976
Stefan Dösinger stefan@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |stefan@codeweavers.com Ever confirmed|0 |1 Status|CLOSED |REOPENED Resolution|NOTOURBUG |---
--- Comment #24 from Stefan Dösinger stefan@codeweavers.com --- I ran into this bug too, although not in all Wine games. I guess it has something to do with how they read mouse input.
I have seen this in Rocket League and Blood: Fresh Supply.
I am reopening this bug, it needs more research.
https://bugs.winehq.org/show_bug.cgi?id=46976
Eduardo eduardo.cruz@kdemail.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |eduardo.cruz@kdemail.net
--- Comment #25 from Eduardo eduardo.cruz@kdemail.net --- This is happening to me on StarCraft 2, wine-6.22 (Staging), Arch Linux, nvidia RTX 2060 with driver 495.44, Acer Predator Helios 300 laptop with PRIME configuration.
I have actually three pointer devices connected at the same time: the laptop built-in touchpad, a Logitech M590 wireless mouse paired to its USB receiver, and a wired USB Logitech G403 (1000 Hz polling rate).
Inside the game, I can control the cursor with all 3 devices. If I wiggle the G403, the FPS drops to around 9 FPS, whilst wiggling the other devices maintains regular 40-60 fps.
Even if it is some sort of hardware bug, maybe it is possible to fix it inside Wine. In Windows I don't have this issue with the same hardware, so they have fixed it via software there.
https://bugs.winehq.org/show_bug.cgi?id=46976
Thomas J. thojohns@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |thojohns@hotmail.com
--- Comment #26 from Thomas J. thojohns@hotmail.com --- I've also started experiencing this issue sometime in the last 4-6 weeks, although I've had issues nailing down any specific cause.
Like the above user, I'm on Arch Linux, using an RTX 2060 (mobile, in my case) with the latest 495 drivers, with a Logitech mouse (G305) polling at 1000Hz. None of my hardware has been replaced since well before the issue started occurring, save for my monitor which was upgraded sometime afterwards.
In my case, the issue first started sometime around when I upgraded to the Nvidia 495 driver's stable release and a 5.15.1 kernel. Downgrading to the 470 drivers had no noticeable impact, nor did downgrading to a Wine version that was used without issue some weeks prior. It's possible that this issue is relevant again due to an interaction with some change in kernel 5.15, though I haven't installed an older kernel to test that theory.
Curiously, at least in my case, this doesn't seem to be strictly limited to devices with a 1000Hz polling rate. As with the above user, rapid mouse movement in affected titles will drop the framerate down into the single digits, but I can reproduce that same effect by moving both joysticks at once on my Dualsense controller, which should only be polling at 250Hz. Moving only one joystick produces a lesser effect (usually a 10-25FPS drop in a game locked to 60FPS), while its touchpad (being used in the same manner as a laptop trackpad) produces no lag at all despite polling at the same 250Hz frequency.
I haven't yet tested whether limiting the polling rate on my devices to 125Hz actually resolves the issue, as it appears that the USB3 driver is causing my usbhid settings to be ignored. It should be easy enough to work around, at least, but I might try checking out an older 5.14 kernel first.
https://bugs.winehq.org/show_bug.cgi?id=46976
--- Comment #27 from Eduardo eduardo.cruz@kdemail.net --- It's not happening to me anymore. Same hardware, same mouse, same game (Starcraft II). I have updated many packages on my system since then, I don't know what fixed it, but I know it wasn't wine because I tried downgrading to wine-6.22 (Staging) and the bug still doesn't come back. Maybe the kernel? Now I'm on 5.15.11, I didn't take note of what kernel version I had back when I had the bug, but I'm pretty sure it was already some subversion of 5.15.
https://bugs.winehq.org/show_bug.cgi?id=46976
kotrigmd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kotrigmd@gmail.com
--- Comment #28 from kotrigmd@gmail.com --- I managed to work around this issue by re-enabling processor C-states in BIOS, after having previously disabled them. I noticed in sysprof that switching the CPU to an idle state was taking up a massive amount of time whenever I moved my mouse (or pressed a lot of keys at the same time), during which the game I had open would completely stall, so from there I had a pretty good guess as to what was going on.
That said, the fact that this only happens in wine, and not in Windows or any native programs, seems possibly indicative of a deeper problem with wine itself. It's also possible that what fixed it for me won't fix it for everyone else.
https://bugs.winehq.org/show_bug.cgi?id=46976
Neko-san nekoNexus@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nekoNexus@protonmail.ch
https://bugs.winehq.org/show_bug.cgi?id=46976
jacobbrett+winehqbugs@jacobbrett.id.au changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jacobbrett+winehqbugs@jacob | |brett.id.au
https://bugs.winehq.org/show_bug.cgi?id=46976
Ben Leggett algosystem@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |algosystem@gmail.com
--- Comment #29 from Ben Leggett algosystem@gmail.com --- I have noticed Underrail has this issue as well, with Wine 9.15
https://bugs.winehq.org/show_bug.cgi?id=46976
shadowpauler37@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |shadowpauler37@gmail.com
--- Comment #30 from shadowpauler37@gmail.com --- I'm also having this issue, with a lot games within Wine.
Tested games: - Age of Empires IV - Dinkum - Abiotic Factor - Predecessor
I reinstalled Arch & tried various kernels such as LTS, Zen & TKG all had the same result.
I am currently testing to see if this is due to C-state settings in the BIOS as mentioned by user kotrigmd@gmail.com.
https://bugs.winehq.org/show_bug.cgi?id=46976
stephematician@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |stephematician@gmail.com
--- Comment #31 from stephematician@gmail.com --- This appeared for me with Horizon Zero Dawn, wine 9.22.
Using a Razer Orochi v2 which has an approx 500 polling rate.
https://bugs.winehq.org/show_bug.cgi?id=46976
--- Comment #32 from stephematician@gmail.com --- I am not seeing frame rate drops in wine-staging 10.0-rc2, running Horizon Zero Dawn (GoG). Only change has been the update to wine-staging.
I suspected (at first) that this was addressed in https://gitlab.winehq.org/wine/wine/-/merge_requests/3072 - however this has been merged since at least wine-staging 9.5, so there must be some other reason. If I were the type to build wine; then presumably I could bisect between 10.0-rc2 and 9.22 to find the commit.
https://bugs.winehq.org/show_bug.cgi?id=46976
sergey.khorev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sergey.khorev@gmail.com