https://bugs.winehq.org/show_bug.cgi?id=55654
Bug ID: 55654 Summary: High RAM usage in GTA San Andreas with SkyGFX Product: Wine Version: 8.16 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: d3d Assignee: wine-bugs@winehq.org Reporter: aidas957@gmail.com CC: z.figura12@gmail.com Regression SHA1: c065b4fe0b3622e0c737a4c7c1c514273ad2d8a7 Distribution: ArchLinux
Hello,
So GTA San Andreas has high RAM usage when using the SkyGFX mod since commit c065b4fe0b3622e0c737a4c7c1c514273ad2d8a7
At first the RAM usage seems normal (no more 400 MB) but after doing a loop around the city the RAM usage gets to ~1.5 GB
Commit 22fcf28f05a2478df01b0a0cfae1a49376c990f5 does improve things (the RAM usage when doing the same test is ~1.2 GB) but it's still noticeably higher than before
Disabling/removing the SkyGFX mod or switching to DXVK makes the issue disappear (so it's some weird interaction with the SkyGFX mod and WineD3D)
I do use wine-staging like always (but disabling all of the wined3d staging patchsets didn't make a difference)
The mod is open-source though (https://github.com/aap/skygfx) so it should be easier to tell what graphics code/shader file is triggering the high RAM issue
I tried using valgrind's massif to track the cause of this issue but valgrind didn't support some instructions that are used by 2 mods (and doing some byte patching caused SkyGFX to segfault so that's out of the question)
+d3d logs/an apitrace might be helpful but the issue only becomes noticeable enough after a few minutes so both of these are going to be likely too big