https://bugs.winehq.org/show_bug.cgi?id=53100
Bug ID: 53100 Summary: Euphoria: freezes every second while controllers are plugged in Product: Wine Version: 7.10 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: lahvuun@gmail.com Regression SHA1: 4f1095a0ee4c7577e5287e56e388c36d0ba659ad Distribution: Gentoo
Created attachment 72531 --> https://bugs.winehq.org/attachment.cgi?id=72531 Output of WINEDEBUG=trace+winmm wine euphoria.exe
If any controllers are plugged in, approximately every second Euphoria will freeze for a brief moment.
Euphoria is a Visual Novel made by Clockup. Be warned, it's (very) NSFW. I'm using the English release by MangaGamer: https://mangagamer.org/euphoria/ The problem affects other games by Clockup. They likely run on the same engine, since the file structure is very similar.
This wasn't a problem with older versions of wine, git bisect points to 4f1095a0ee4c7577e5287e56e388c36d0ba659ad — winmm: Reimplement joystick APIs on top of dinput, by Rémi Bernon.
Since this started after a winmm change, I ran the game with WINEDEBUG=trace+winmm, the log is attached. Looks like find_joysticks is regularly called, the game freezes at the same time these calls are logged.
My guess is that find_joysticks is slow for some reason, so it blocks the game. The more controllers are plugged in simultaneously, the longer it freezes for (I tested with 0, 1 and 4).
The game doesn't freeze on my Windows 10 install at all, even with 4 controllers plugged in.