https://bugs.winehq.org/show_bug.cgi?id=48723
Bug ID: 48723 Summary: Torchlight - Loading times are excessively long Product: Wine Version: 4.5 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: msvcrt Assignee: wine-bugs@winehq.org Reporter: vv221+winehq@dotslashplay.it Distribution: ---
Created attachment 66598 --> https://bugs.winehq.org/attachment.cgi?id=66598 revert the faulty commit
This bug has been spotted on version 1.15 of Torchlight, as sold on gog.com. It has been reproduced reliably on a Debian Sid and an Arch Linux.
The symptoms are: - the game takes a long time to launch - switching between characters in the menu takes several seconds - transition between zones in game takes much longer than it should
The issue is present starting with WINE 4.5, and is still present in latest release (5.3) and current master (wine-5.3-181-geb63713f60). WINE 4.4 is the latest non-affected release.
I did a bisect and identified the following commit as the faulty one: f48ea297268e832c93a22fb5b92f73620c717280 "msvcrt: Use _strnicmp instead of strncasecmp."
The attached patch reverts this commit, it applies cleanly on both 5.3 and current master, and restore normal loading times in the game.
You can see more information about this issue in the original bug report in the issues tracker of ./play.it: https://forge.dotslashplay.it/play.it/games/issues/342