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.