doitsujin / dxvk

Vulkan-based implementation of D3D8, 9, 10 and 11 for Linux / Wine
zlib License
12.74k stars 818 forks source link

[dxd9] Saints row 2 stuttering, freezes while using dxvk 2.1 on an AMD gpu. Trying dxvk x32, x64 and qinilili's patch. #3375

Open qbertx opened 1 year ago

qbertx commented 1 year ago

After playing the game with the x32 version of dxvk after a minute or so, the game freezes and forces me to restart my pc. The game also sometimes crashes when i load the game (seems to be fixed by running the game through the .exe file instead of steam). When i replace dxvk x32 with the x64 version, the overall performance seems to be better, stutters are gone, still get minor frame drops (from 70 fps to 50), but after a while the game gets enormous frame drops (<1 fps) and im forced to quit the game. The dxvk patch works perfectly on my brothers pc even though its specs are worse than mine. (has an nvidia gpu, think i heard that amd gpus have bad performance on older games?) Tried [qinlili23333]'s sr2 patch that is supposed to fix the games memory management. The game runs nearly perfectly (stable 50 fps, odd stutter here and there), but i get a constant flickering bar at the bottom of my screen. (Fixed by enabling fullscreen vsync). Combining the .exe patch and dxvk makes the game run worse than vanilla. So, as of now qinlili's patch without dxvk runs the best for me, but i hope that someday dxvk will work for me and i would be able to run the game perfectly at a stable 60 fps. Btw the game's api is x32, so it seems strange to me that the x64 patch of dxvk runs better than the x32 for me. I will attach the games log files from every different version/patch i tested. Hope this post helps development or helps someone else get better performance in-game. Next, i will test DXVK-Async's and DxWrapper's effect on the performance. Will update if i find something worthwhile. dxvk32nopatch.log dxvkx64nopatch.log x32crashonloadgame.log nodxvk_patchedexe.log

qbertx commented 1 year ago

Oh, by the way, here is the link to the aforementioned patch: https://github.com/doitsujin/dxvk/issues/2417#issuecomment-1145601491

doitsujin commented 1 year ago

can you post an apitrace? seems like there's something that makes AMD's driver error out on vkEndCommandBuffer, but it's impossible to tell what that might be without a way to consistently reproduce it.

When i replace dxvk x32 with the x64 version, the overall performance seems to be better

The reason why it's better is because you're literally not using DXVK when doing that. You cannot use 64-bit DXVK DLLs with a 32-bit game, they just get ignored.

qbertx commented 1 year ago

Sorry, but i just cant figure out how to use apitrace. Im reading the USAGE.markdown file but barely understand anything.

mbriar commented 1 year ago

On windows you basically just drop apitace's d3d9.dll next to the game's .exe (without any dxvk dlls around) and run the game at least until you hit the spot that has the issue when using dxvk. It will create a trace file on your desktop.

22 Apr 2023, 14:47 by @.***:

Sorry, but i just cant figure out how to use apitrace. Im reading the USAGE.markdown file but barely understand anything.

— Reply to this email directly, > view it on GitHub https://github.com/doitsujin/dxvk/issues/3375#issuecomment-1518642201> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/A3G6J6LXXJ7GXKUQD7Z4TC3XCPHNJANCNFSM6AAAAAAXHZBYYQ> . You are receiving this because you are subscribed to this thread.> Message ID: > <doitsujin/dxvk/issues/3375/1518642201> @> github> .> com>

qbertx commented 1 year ago

I copied the \apitrace-latest-win32\lib\wrappers\d3d9.dll file to the game's executable location, but now it refuses to launch, giving me the (application was unable to start correctly (0xc0000005)) error

Blisto91 commented 1 year ago

I'm testing it at the moment

Blisto91 commented 1 year ago

The crash without the patches exe is a memory issue and the patch extends the allowed amount from 2GB to ~4GB. Dxvk have a system to try and help memory usage on some such cases, but Saints Row 2 is one of two known games that crash with it enabled so it has been disabled for the game. I don't see the issue with the flickering bar at the bottom of the screen when testing on Windows with dxvk (AMD)

K0bin commented 1 year ago

Saints Row 2 doesn't work on my PC at all.

So nothing I can do here.

Zergei commented 1 year ago

you should read this guide hope it helps you regarding your issues with the game https://steamcommunity.com/sharedfiles/filedetails/?id=2916772309

EtaYorius commented 1 year ago

I opened a thread too a while ago for this game, same issues as the author of this thread. When i install DXVK, i can get to the title and load my save or create new game, the game just crashes. No matter what version wether it's old or latest it will crash 100% of the time, sometimes it will load the game and i can see my character for like 2 seconds, then crash.

I tried DXWrapper along DXVK like Zergei suggested and absolutely nothing changes. Game still crashes the same.

I'm using a GTX 1070 with 535.40 Drivers, i am unsure if they're the latest but i remember having this same issue even with much older drivers.

When i created my own thread i remember being able to load the game, but there was a weird issue with the skin of my character, like one side wilI have two different skins, then i would get to play for a like a min or two but will eventually crash. I was using the same system back then, so not sure why i can't play at least for a couple minutes like i did back then.

I have attached several logs with different versions of DXVK. Hope this helps, SR2 is an under appreciated master piece, and is probably have worst performance than Oblivion or GTA4, titles that DXVK does seem to fix perfectly. But not this one.

sr2_pc_d3d9_3.log sr2_pc_d3d9_4.log sr2_pc_d3d9_0.log sr2_pc_d3d9_1.log sr2_pc_d3d9_2.log

AnonyCat2 commented 11 months ago

Yup, having the same issues. Also the reason x64 works better for you is because it just simply doesn't work. By having x64 and not x32 the game just doesn't do anything with it, in other words you are just playing the vanilla game.

HonScottoSolo commented 10 months ago

you should read this guide hope it helps you regarding your issues with the game https://steamcommunity.com/sharedfiles/filedetails/?id=2916772309

We can not use this as they had patched the game with not using to much on LAA. Plus replacing exes is not going to do justice on steam-wise.

I opened a thread too a while ago for this game, same issues as the author of this thread. When i install DXVK, i can get to the title and load my save or create new game, the game just crashes. No matter what version wether it's old or latest it will crash 100% of the time, sometimes it will load the game and i can see my character for like 2 seconds, then crash.

I tried DXWrapper along DXVK like Zergei suggested and absolutely nothing changes. Game still crashes the same.

I'm using a GTX 1070 with 535.40 Drivers, i am unsure if they're the latest but i remember having this same issue even with much older drivers.

When i created my own thread i remember being able to load the game, but there was a weird issue with the skin of my character, like one side wilI have two different skins, then i would get to play for a like a min or two but will eventually crash. I was using the same system back then, so not sure why i can't play at least for a couple minutes like i did back then.

I have attached several logs with different versions of DXVK. Hope this helps, SR2 is an under appreciated master piece, and is probably have worst performance than Oblivion or GTA4, titles that DXVK does seem to fix perfectly. But not this one.

sr2_pc_d3d9_3.log sr2_pc_d3d9_4.log sr2_pc_d3d9_0.log sr2_pc_d3d9_1.log sr2_pc_d3d9_2.log

This is because of LAA was need but Steam prevents this cause of Steam's stub protection. Steam: Use this instead: https://github.com/doitsujin/dxvk/issues/2417#issuecomment-1145601491 Gog: use the LAA Patch.

EtaYorius commented 10 months ago

you should read this guide hope it helps you regarding your issues with the game https://steamcommunity.com/sharedfiles/filedetails/?id=2916772309

We can not use this as they had patched the game with not using to much on LAA. Plus replacing exes is not going to do justice on steam-wise.

I opened a thread too a while ago for this game, same issues as the author of this thread. When i install DXVK, i can get to the title and load my save or create new game, the game just crashes. No matter what version wether it's old or latest it will crash 100% of the time, sometimes it will load the game and i can see my character for like 2 seconds, then crash. I tried DXWrapper along DXVK like Zergei suggested and absolutely nothing changes. Game still crashes the same. I'm using a GTX 1070 with 535.40 Drivers, i am unsure if they're the latest but i remember having this same issue even with much older drivers. When i created my own thread i remember being able to load the game, but there was a weird issue with the skin of my character, like one side wilI have two different skins, then i would get to play for a like a min or two but will eventually crash. I was using the same system back then, so not sure why i can't play at least for a couple minutes like i did back then. I have attached several logs with different versions of DXVK. Hope this helps, SR2 is an under appreciated master piece, and is probably have worst performance than Oblivion or GTA4, titles that DXVK does seem to fix perfectly. But not this one. sr2_pc_d3d9_3.log sr2_pc_d3d9_4.log sr2_pc_d3d9_0.log sr2_pc_d3d9_1.log sr2_pc_d3d9_2.log

This is because of LAA was need but Steam prevents this cause of Steam's stub protection. Steam: Use this instead: #2417 (comment) Gog: use the LAA Patch.

This works perfectly, _Thanks_! who would had guess it was a LAA Memory issue?

HonScottoSolo commented 10 months ago

No problem.