https://bugs.winehq.org/show_bug.cgi?id=48700
--- Comment #17 from Paul Gofman gofmanp@gmail.com --- Created attachment 66624 --> https://bugs.winehq.org/attachment.cgi?id=66624 Another tweak
(In reply to mo78 from comment #16)
The second patch is working only in a clean prefix. If you exit the game and try to start it again, the game will stuck on the loading screen. DXVK HUD shows changing FPS but the game will never load.
It was working for me without cleaning prefixes. I run with Wine and Wine Staging (with Windows Steam version), maybe "protonified" build breaks with it or there is some other difference in your case. All that is quite possible, this was very quick and reckless tweak which can break a lot of things.
Here is another tweak which works for me also, this one is probably less invasive but adds some extra bytes for each allocation (which are freed in a normal way, i.e., memory consumption is increased a bit but no leak). The patch based upon mainstream Wine and needs formal rebase for Staging, but can also be applied to Staging with 'patch -p1 < patch_file' which successfully applies it with fuzz.
But please note that I am not really up to polishing these hacks, so if the the very first simplest patch works good enough maybe that's what can be used as a game specific workaround.