https://bugs.winehq.org/show_bug.cgi?id=48401
Bug ID: 48401 Summary: GTA IV - Framerate drop after 5 minutes of gameplay Product: Wine Version: 4.0.3 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: dmayr.dev@gmail.com Distribution: ---
Hardware: Lenovo ThinkPad T410s, 1st-gen i5, NVidia NVS3100M with driver 340.107 OS: Ubuntu 18.04 / elementaryOS 5.0
When playing GTA IV under Wine, framerate is quite nicely playable: 30+fps in wine 4.0.3, Windows 10 mode (so far, best experience).
However, framerate begins to drop abruptly after about 5 minutes of gameplay, in the 5-10fps range, sometimes to 1-2fps. CPU+GPU begin to heat up in the high range (90°C).
This doesn't happen as badly in other DirectX 9 games.
I've added a registry DWORD key to disable CSMT (when enabled, the described problem begins at gameplay start, not a second later), and limited video memory to 384Mb.
It is known, however, that GTA IV is a badly optimized game that has caused trouble in Windows before, so I'm aware that YMMV.
Let me know how else I can help pinpointing the problem cause.
https://bugs.winehq.org/show_bug.cgi?id=48401
Dennis Mayr dmayr.dev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |Ubuntu
https://bugs.winehq.org/show_bug.cgi?id=48401
Alexandr Oleynikov sashok.olen@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sashok.olen@gmail.com
--- Comment #1 from Alexandr Oleynikov sashok.olen@gmail.com --- Please retest with Nouveau and latest development version of Wine, and also preferably with Mesa version that isn't almost 2 years old.
https://bugs.winehq.org/show_bug.cgi?id=48401
florian98.rg@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |florian98.rg@gmail.com
--- Comment #2 from florian98.rg@gmail.com --- This doesn't sound like a problem with Wine. Looks to me like your laptop is just overheating, especially considering both CPU and GPU reach 90°C+.
https://bugs.winehq.org/show_bug.cgi?id=48401
--- Comment #3 from Dennis Mayr dmayr.dev@gmail.com --- (In reply to Alexandr Oleynikov from comment #1)
Please retest with Nouveau and latest development version of Wine, and also preferably with Mesa version that isn't almost 2 years old.
I tried with xorg-hwe for updates X drivers, nouveau, and kernel 5.0; using nouveau gets me a black screen. You can hear the game’s intro and the menu item audible feedback, but there’s no on-screen rendered image at all, as if all graphics were rendered offscreen and not re-routed to the current display.
Using nouveau with other DirectX-based games works, at a lower performance level, though.
https://bugs.winehq.org/show_bug.cgi?id=48401
--- Comment #4 from Dennis Mayr dmayr.dev@gmail.com --- (In reply to florian98.rg from comment #2)
This doesn't sound like a problem with Wine. Looks to me like your laptop is just overheating, especially considering both CPU and GPU reach 90°C+.
It could be, but I reapplied thermal paste last month, and it compiling projects at 99% of CPU use only raises temperature to around 78-80°C.
Still, it’s a possibility.
https://bugs.winehq.org/show_bug.cgi?id=48401
--- Comment #5 from florian98.rg@gmail.com --- (In reply to Dennis Mayr from comment #4)
(In reply to florian98.rg from comment #2)
This doesn't sound like a problem with Wine. Looks to me like your laptop is just overheating, especially considering both CPU and GPU reach 90°C+.
It could be, but I reapplied thermal paste last month, and it compiling projects at 99% of CPU use only raises temperature to around 78-80°C.
Still, it’s a possibility.
Most laptops use a shared heatsink for CPU and GPU, so you're most likely is fine when only doing CPU/GPU heavy tasks, but doing both at once probably results in the behaviour you mentioned.
https://bugs.winehq.org/show_bug.cgi?id=48401
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |o.dierick@piezo-forte.be
--- Comment #6 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
1. Retest with recent wine-devel/wine-staging (5.0-rc*).
4.0.3 is wine-stable and doesn't include the latest fixes and features.
--- quote from https://wiki.winehq.org/Bugs#When_to_report_a_bug --- When to report a bug (...) · You are using the latest development version of Wine (not stable) (See downloads for information on how to get the latest). (...) --- end quote --- https://www.winehq.org/download
2. Try with Windows version 7 in winecfg. Unless the application has a specific need for Win10 you should use the default Win7 mode.
3. If the above doesn't fix the issue: Attach a normal (=without WINDEBUG) terminal output). Instructions to get a log can be found there: https://wiki.winehq.org/FAQ#get_log
4. Please also state how much system RAM you have. The issue you describes happens on Windows too (search for 'gta 4 lags after few minutes' on any search engine). On Windows it is related to Page Caching on disk when system RAM is exhausted.
5. Please also add the bug link to the AppDB entry of your version. If you don't have/want an AppDB account, please tell the version so that I can add the link myself. https://appdb.winehq.org/objectManager.php?sClass=application&iId=8757
6. Black screen with nouveau may be bug 38863. Please, Let this bug focus on the lag issue only.
Regards.
https://bugs.winehq.org/show_bug.cgi?id=48401
--- Comment #7 from Dennis Mayr dmayr.dev@gmail.com --- (In reply to Olivier F. R. Dierick from comment #6)
Hello,
- Retest with recent wine-devel/wine-staging (5.0-rc*).
4.0.3 is wine-stable and doesn't include the latest fixes and features.
--- quote from https://wiki.winehq.org/Bugs#When_to_report_a_bug --- When to report a bug (...) · You are using the latest development version of Wine (not stable) (See downloads for information on how to get the latest). (...) --- end quote --- https://www.winehq.org/download
- Try with Windows version 7 in winecfg.
Unless the application has a specific need for Win10 you should use the default Win7 mode.
- If the above doesn't fix the issue:
Attach a normal (=without WINDEBUG) terminal output). Instructions to get a log can be found there: https://wiki.winehq.org/FAQ#get_log
- Please also state how much system RAM you have.
The issue you describes happens on Windows too (search for 'gta 4 lags after few minutes' on any search engine). On Windows it is related to Page Caching on disk when system RAM is exhausted.
- Please also add the bug link to the AppDB entry of your version.
If you don't have/want an AppDB account, please tell the version so that I can add the link myself. https://appdb.winehq.org/objectManager.php?sClass=application&iId=8757
- Black screen with nouveau may be bug 38863.
Please, Let this bug focus on the lag issue only.
Regards.
Hi! I just retested.
1. I've used wine-5.0-rc3 2. Windows 7 mode worsened performance in comparison to Windows 10 mode 3. log.txt yielded nothing 4. My machine has 4Gb of RAM, no other applications are open at the time GTA IV is running 5. I'm using the Title Update 7 version of the game: https://appdb.winehq.org/objectManager.php?sClass=version&iId=22316
https://bugs.winehq.org/show_bug.cgi?id=48401
Alexandr Oleynikov sashok.olen@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|sashok.olen@gmail.com |
https://bugs.winehq.org/show_bug.cgi?id=48401
--- Comment #8 from Dennis Mayr dmayr.dev@gmail.com --- I also ran LaunchGTAIV.exe with the following commandline argument:
-memrestrict 314572800 (medium textures, to avoid memory leaks according to Rockstar support)
https://bugs.winehq.org/show_bug.cgi?id=48401
--- Comment #9 from Dennis Mayr dmayr.dev@gmail.com ---
Just finished replacing thermal paste and adjusting the heatsink positions on the computer, making sure that they're all level and in full contact with the processors, so that we can check if overheating is the cause, as suggested by florian98.rg; critical temps are 100°C for the GPU, 105°C for the processor cores.
Ran `watch sensors` on a linux console.
Ran GTA IV under wine 5.0-rc3 (Windows 7) for 10 minutes. Exited immediately after the 2nd. slowdown.
Max temperature didn't go beyond 76°C at the moment of exiting the game during slowdown, for both processor cores and the GPU, with the fan spinning @ 4500rpm.
1st. slowdown began after 7 minutes of gameplay.
https://bugs.winehq.org/show_bug.cgi?id=48401
mirh mirh@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mirh@protonmail.ch
--- Comment #10 from mirh mirh@protonmail.ch --- Is this still a thing? Can you see any change in cpu or gpu activity when things start to get slow?