https://bugs.winehq.org/show_bug.cgi?id=40804
Bug ID: 40804 Summary: Touhou 6, 7, 8, 10, 11 have severe fps drop. Product: Wine Version: 1.9.12 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: asaygashev@mail.ru Distribution: ---
The problem arises on a laptop with Intel i7-5500U processor (HD 5500 Graphics) + Nvidia GeForce 940M. OS: Arch Linux with linux 4.6.2-1-zen. Regular Xorg Intel drivers are installed (xf86-video-intel 1:2.99.917+662+gb617f80-1) + Nvidia drivers with Bumblebee. Using Option "DRI" "3" in xorg.conf as extra parameter in Intel card.
Now the problem: Touhou 6 runs at 20 fps. Touhou 7 runs at 20 fps. Touhou 8 runs at 30 fps. Touhou 9 runs flawlessly at 60 fps [!!!]. Touhou 10 runs at 30 fps. Touhou 11 runs at 30 fps.
The same problem persists when running Touhou 8 and 10 on the same hardware with Debian 8.
To make things even crazier I tried running these games on virtualized Debian (Virtualbox 5.0.20-1) on the same Arch Linux on the same macchine and could get: Touhou 6 -> 60 fps in menu with broken keyboard input. Touhou 7 -> 60 fps in menu with broken keyboard input. Touhou 8 -> 60 fps in menu, 40 fps in game with broken keyboard input. Touhou 9 -> still working perfectly. Touhou 10 -> 60 fps in menu, 40 fps in game with broken keyboard input. Touhou 11 -> 45 fps in menu, 30 fps in game.
that's wine output of a regular run: $ wine th08.exe fixme:win:EnumDisplayDevicesW ((null),0,0x32f8a4,0x00000000), stub! fixme:win:WINNLSEnableIME hwnd (nil) enable 1: stub! $
Other things tried but got no improvements in fps: - Changing kernel from standard arch to zen; - run with nvidia (optimus, primus), nouveau; - tweaking with xorg.conf changing parameters on graphic cards; - renicing; - changing cpu governor settings; - changing scheduling settings; - replacing wine d3dx9_36, d3dx9_37, d3dx9_43 with windows files.
https://bugs.winehq.org/show_bug.cgi?id=40804
--- Comment #1 from Henri Verbeet hverbeet@gmail.com --- Is this the same as bug 30538? The final status of that one was a bit unclear.
https://bugs.winehq.org/show_bug.cgi?id=40804
--- Comment #2 from asaygashev@mail.ru --- Created attachment 55418 --> https://bugs.winehq.org/attachment.cgi?id=55418 Touhou 8 and 9 Sysprof run
Compressed due to 38 MB size.
https://bugs.winehq.org/show_bug.cgi?id=40804
--- Comment #3 from asaygashev@mail.ru --- I tried to run older wine versions as described on bug 30538 but couldn't get any result because of broken dependencies of old libraries, I didn't compile older wine nor able to do it on 64 bit system.
I've tried to profile Touhou 8 and Touhou 9 game using sysprof and add results to attachements.
I suppose there is something wrong with call_process_entry, i965_dri.so and some other graphics functions, but I don't feel like I can say anything more.
https://bugs.winehq.org/show_bug.cgi?id=40804
asaygashev@mail.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |ArchLinux Version|1.9.12 |1.9.16
https://bugs.winehq.org/show_bug.cgi?id=40804
asaygashev@mail.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |NOTOURBUG
--- Comment #4 from asaygashev@mail.ru --- It seems linux-zen update from 4.7.1-1 to 4.7.2-1 affects things heavily.
Touhou 6, 7, 8, 10, 11 now work fine at 60 fps with little slowdown sometimes. Instead the situation is inverted for Touhou 9 that drops to 10 fps.
I got no wine, xorg or intel driver update, this makes me think that the issue was due to linux.
Solved, but now the question is why and for how much...
https://bugs.winehq.org/show_bug.cgi?id=40804
asaygashev@mail.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|NOTOURBUG |--- Status|RESOLVED |UNCONFIRMED
--- Comment #5 from asaygashev@mail.ru --- Sorry for wrong report and doubleposting but it appears that information I have given is not correct.
Touhou 6, 7, 8, 10, 11 work properly if I connect a Wacom pen tablet over USB and start one of them. If I detach it things happen as in bug report. Another thing is Touhou 9 now runs at 16-17 fps normally and 10 fps with Wacom attached.
Now I think kernel update had no or small influence. What could be the cause of this even crazier behaviour here?
https://bugs.winehq.org/show_bug.cgi?id=40804
asaygashev@mail.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Version|1.9.16 |1.9.20 Status|UNCONFIRMED |RESOLVED
--- Comment #6 from asaygashev@mail.ru --- Now Wine works! Touhou 6, 7, 8, 9, 10, 11 run 60 fps without several drops. Games are playable within 0.50% slowdown rate and I don't perceive slowdowns during matches.
I send you package versions which worked, 31 October 2016 configuration: wine 1.9.20-1 xf86-input-wacom 0.33.0-1 xf86-input-libinput 0.20.0-1 xf86-video-intel 1:2.99.917+711+gbd33d0a-1 xf86-input-keyboard 1.8.1-2 linux-zen 4.7.6-1 lib32-libdbus 1.10.10-3
Anyway I presume that it works with 2 weeks before the posted date packages.
https://bugs.winehq.org/show_bug.cgi?id=40804
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 2.0-rc1.