Open frozen-sea opened 8 months ago
Replying to https://github.com/ValveSoftware/Proton/issues/7595#issuecomment-2016812988
After my own testing, I'm now convinced this is definitely correct in my case. Disable SAM/BAR has no actual effect. Sometimes I get a high framerate with high GPU usage when the game starts, and sometimes I don't, regardless of whether I have any environment variables at all.
Unfortunately, I've found that AMDVLK also does not actually prevent crashing. I was able to get a couple of hours of play without the system crashing, but that also seems to be random, and it happens with RADV as well. Still, sometimes, I start the game, and within a few minutes, I get a full lock up of the system and have to ALT + SysRq + REISUB to even get out of it.
AMD Ryzen 7 7800x3D AMD Radeon RX 6800 XT 32 GB of RAM Kubuntu 23.10 Wayland
After my own testing, I'm now convinced this is definitely correct in my case. Disable SAM/BAR has no actual effect. Sometimes I get a high framerate with high GPU usage when the game starts, and sometimes I don't, regardless of whether I have any environment variables at all.
I can also confirm this, and I have an Intel CPU and Nvidia GPU, so it does not seem to be tied to any specific architecture. The game sometimes starts with a good framerate, and sometimes it does not.
Also, I do not know if other people are experiencing this, but while on menus (e.g., inventory/trade screen/vocation skills), my FPS diminishes by a lot. I believe most of my crashes have been while on menus.
Furthermore, I have not experienced the "long shader cache loading" that some people had when starting the game for the first time. It took maybe 20 sec tops and the generated shader.cache2
has about 23 MiB; this also seems abnormal.
Today i installed Pop!_OS and when launching the game it gives me this error after the RE Engine logo, before the start menù. Anyone has any idea on what is it? I'm on NVIDIA GPU
I had that exact same issue. Between this thread and a few others I found the following consistently lets me get into the game:
PROTON_ENABLE_NVAPI=1 VKD3D_CONFIG=dxr VKD3D_FEATURE_LEVEL=12_2 VKD3D_SHADER_MODEL=6_7 %command%
That gets me into the game and I played up until The Arisen heads to the capital. One of the NPCs that accompany you's model would glitch out and make the game unplayable until I restarted. And denuvo considers every restart (even if proton and flags don't change) to count as an activation.
Could probably narrow down the required options but with 5 or so attempts to play the game per day... I just don't care enough to do a deep dive debug. But hopefully this helps.
Replying to https://github.com/ValveSoftware/Proton/issues/7595#issuecomment-2028444012
I did some digging and found that people using Windows are experiencing the same crashes and other issues described here. It's the game, and mostly likely, only the devs can fix it.
So, switching to from fullscreen to borderless stopped the crash from causing my entire system to freeze up, but it still froze the game. With PROTON_LOG=1 %command%, I was able to get this from the log:
3375.565:0128:022c:warn:vkd3d-proton:dxgi_vk_swap_chain_wait_worker: Incrementing frame latency semaphore beyond max latency. Did application forget to acquire? (new count = 2, max latency = 1) 3385.592:0128:0180:err:vkd3d-proton:vkd3d_wait_for_gpu_timeline_semaphore: Failed to wait for Vulkan timeline semaphore, vr -4. 3385.592:0128:0178:err:vkd3d-proton:vkd3d_wait_for_gpu_timeline_semaphore: Failed to wait for Vulkan timeline semaphore, vr -4. 3385.592:0128:0180:warn:vkd3d-proton:d3d12_device_mark_as_removed: Device 00000000743e0080 is lost (reason 0x887a0005, "VK_ERROR_DEVICE_LOST").
So, switching to from fullscreen to borderless stopped the crash from causing my entire system to freeze up, but it still froze the game. With PROTON_LOG=1 %command%, I was able to get this from the log:
3375.565:0128:022c:warn:vkd3d-proton:dxgi_vk_swap_chain_wait_worker: Incrementing frame latency semaphore beyond max latency. Did application forget to acquire? (new count = 2, max latency = 1) 3385.592:0128:0180:err:vkd3d-proton:vkd3d_wait_for_gpu_timeline_semaphore: Failed to wait for Vulkan timeline semaphore, vr -4. 3385.592:0128:0178:err:vkd3d-proton:vkd3d_wait_for_gpu_timeline_semaphore: Failed to wait for Vulkan timeline semaphore, vr -4. 3385.592:0128:0180:warn:vkd3d-proton:d3d12_device_mark_as_removed: Device 00000000743e0080 is lost (reason 0x887a0005, "VK_ERROR_DEVICE_LOST").
Disregard. It went back to freezing the whole system on the next run.
Replying to #7595 (comment)
I did some digging and found that people using Windows are experiencing the same crashes and other issues described here. It's the game, and mostly likely, only the devs can fix it.
I have ~60h playtime and have had 2 crashes that hardlocked the machine and one which produced a report crash dialogue. I suspect only the latter was the game crashing. (One of the hardlocks was directly after leaving the mine start dungeon, and I have seen others reporting the same crash.)
People on windows are reporting being able to get 60 FPS in the cities. I get 40 (by the palace only 30) and wild jitter. My frame rate graph looks like a seismograph.
GPU 7900XTX CPU 5950X
After running the game on windows, I get massively improved performance. It seems something is just not right on the linux side of things.
After running the game on windows, I get massively improved performance. It seems something is just not right on the linux side of things.
I don't like to admit it either but, completely true. Outside of the city on my RTX 3080 + Ryzen 5800x3D on windows the game feels great even with RT on. Switch over to Linux and....30-40 FPS in same area with no RT even. Unsure if DLSS is properly running but it's hard to mess with thanks to Denuvo constantly locking me out.
So you're saying that we are doomed to settle down to using Windows for this game? Hell, no. Can someone well versed on coding figure out what's making the game work properly on windows and preventing it from doing so on linux?
Come on folks, can we please remember that we're playing through a translation layer?
I've been playing this on Linux so far, thanks to folks in here offering tips. Is it great? No. Give it time, things will improve. Let's add constructive comments with logs and shit. This isn't a gamer forum, if your comment doesn't contain useful information for the community or devs, maybe go post in Steam's community.
Latest log of my latest session. Let's hope it helps. I'm using an r5 5600 and RX 6700XT. Can't wait for it to improve and get playable frame rates. It's a been a long time since the I got "good" frames... I miss them.
Someone recently posted on protondb about trying out linux-lqx and having good performance on both cities and open world. I decided to put it to test on my own system and to my surprise it really works wonderfully. I add logs in case anyone wants to go through them.
Someone recently posted on protondb about trying out linux-lqx and having good performance on both cities and open world. I decided to put it to test on my own system and to my surprise it really works wonderfully. I add logs in case anyone wants to go through them.
What we really need is someone to test multiple times and compare results because they differ from one instance to the next with this game. People think they have a fix when they only tested once. I can start the game 5 times and get 45 fps in the main menu 3 times and 90 fps the other 2 times.
If you can tell us the fps in the same location you had before the kernel compared to after (after testing multiple starts), that would be helpful.
Replying to https://github.com/ValveSoftware/Proton/issues/7595#issuecomment-2039339646
Vermudian forest, I used to get erratic fps (about 20 to 30) with the low GPU usage. After installing the kernel and not using any options but PROTON _LOG=1 gamemoderun %command% the game manages to use 90% or more of the GPU constantly and about 60 to 70 fps on open areas as well as 50 to 80 fps on areas like Checkpoint rest area. By the way, linux-lqx uses performance governor by default instead of the schedutil employed by linux-zen. Is it bruteforcing fps by using this governor? Maybe.
I can also say that linux-lqx doubled my framerate, now I'm getting full system resource usage and performance close to windows.
To those testing the lqx kernel, on what Distro are you? What kernel were you using before? I'm curious if anyone with Arch and Zen kernel vs lqx
To those testing the lqx kernel, on what Distro are you? What kernel were you using before? I'm curious if anyone with Arch and Zen kernel vs lqx
EndeavorOS with Zen was what I was using, same distro but with LQX now.
To those testing the lqx kernel, on what Distro are you? What kernel were you using before? I'm curious if anyone with Arch and Zen kernel vs lqx
I'm on Arch BTW... jokes aside I was using linux-zen before making the change and the performance was awful.
I tested the lqx kernel on Kubuntu 23.10, and it did not fix anything. It still randomly has low framerate sometimes when I start the game and then randomly has high framerate when I start it other times. It also still randomly locks up the computer, forcing me to do a hard reset. I played for about 2 hours without any problems earlier but just started it now, and it froze within minutes.
I tested the lqx kernel on Kubuntu 23.10, and it did not fix anything. It still randomly has low framerate sometimes when I start the game and then randomly has high framerate when I start it other times. It also still randomly locks up the computer, forcing me to do a hard reset. I played for about 2 hours without any problems earlier but just started it now, and it froze within minutes.
The lock ups are still present on my system (arch) and they still preserve their random nature. I might've ommited to say that I have gamemode as one of steam's variables (gamemoderun %command%). I'll try without it and report back to see if it makes any difference whether it's on or off.
Replying to https://github.com/ValveSoftware/Proton/issues/7595#issuecomment-2040901166
That was one of the first things I tried. I've tried with gamemode on and off. I tried disabling MangoHud and the Steam Overlay. The Steam forums are filled with Windows players having the same issues. Getting better overall framerates is probably the best we can do for now. I think the crashes, bad frame timing in cities, etc. are things the game devs will have to fix.
Tried lqx kernel, performance definitely improved, like day and night. Game still randomly freezes, and with lqx kernel it freezes as fast as in 2-3 minutes, on default Arch kernel could last for hours, albeit at 12 fps.
UPD: Okay, now I got a system freeze on lqx kernel just while browsing files in dolphin, reverting back to stock kernel
Game became a stuttery mess as soon as I removed gamemode from the start options and audio is buggy af. On the other hand cpu and gpu usage skyrocketed in the start menu both got to 90% like wtf. This game needs a serious revamp on the optimization department. EDIT: It got fixed by deleting both caches in the game's folder.
This LQX talk got me curious, so I whipped up a fresh Endeavour install to test it out. Quick specs summary: 5800X3D, 32 GB unremarkable RAM, 4070 Ti. Nvidia 550.67, kernel 6.7.12-lqx1-1-lqx. Game running on Proton Experimental bleeding-edge, launch options to avoid crashing in main menu due to Reflex: VKD3D_DISABLE_EXTENSIONS=VK_NV_low_latency2 %command%
The performance I'm getting still randomly alternates between two distinct states with about a 2x difference between them. Settings don't really seem to matter, but I tested this at 1440p on the High preset.
Good: Bad:
You can keep flipping the coin and eventually get the good one, simply by quitting and restarting the game. I've also experienced it changing between the two states while playing. Subjectively I'd say that Liquorix gives a higher probability of getting the good outcome, something like >50% compared to the default CachyOS kernel where I see maybe 10%.
Edit: FWIW, after posting this I spent an hour grinding vocation XP with no stability issues.
I also tried Linux-lqx, not AUR version but the binary (they are the same for Archers, from AUR you build yourself and Community you get the same already in binary).
But before that I tried Linux-Zen, Stock then Liquorix, the truth is basically what our friend here said https://github.com/ValveSoftware/Proton/issues/7595#issuecomment-2041046605 there seems to be a higher probability to get the GOLDEN START with Lqx, I restarted the game 10 times and I don't need to go after the menu to verify, since the menu always runs 25 fps. And with the best start, I get a nice, beautiful 60 (60-75 variable) fps. They were basically 20% chance. Still low but Stock Kernel I wasn't able to get once a good start.
So no, my conclusion is that Liquorix doesn't fix the problem, its the game itself, it won't have a fix without the game patch, but Liquorix does provide a better chance to get higher performance in game.
But Liquorix, at least for me does come with some disadvantages, I noticed my boot time is noticeably worst and I am yet to see the full consequences of that (had to restart twice, first time made my whole system unstable), so use it at your own risk.
I ran the game with only PROTON_LOG=1 gamemoderun %command%
.
I'll be providing logs with Stock Kernel and Liquorix. (as I was typing this part I was closing the game from a bad start and my system froze. which I won't say its because of Liquorix because this game has been doing this from time to time).
Yet to be achieved, its HARD to get it with good fps, sorry after the 20th time I lost my will to try again, I only succeeded twice. Both times where only after full restart of pc.
Also tried lqx kernel (on Manjaro) and my first time running the game I am now getting up to 60fps in the wilderness, whereas before it would hover around the 30-ish mark. I can't report on bad starts yet, as it appears I got lucky first time. Just wondering then, what makes this kernel different? I do see better CPU usage than before.
Also tried lqx kernel (on Manjaro) and my first time running the game I am now getting up to 60fps in the wilderness, whereas before it would hover around the 30-ish mark. I can't report on bad starts yet, as it appears I got lucky first time. Just wondering then, what makes this kernel different? I do see better CPU usage than before.
I guess it has to do with the CPU governor set to performance and the optimizations tailored towards gaming. I haven't had any issues with framerates outside Vermund. That city is a CPU hog.
I should note that in my experience with the default arch kernel, the game will usually launch with "good performance" when the game is opened just after rebooting, dilly-dallying with other stuff first will usually result in a big performance hit. I Wonder if the observed liquorix improvement is due to trying the game just after rebooting.
I should note that in my experience with the default arch kernel, the game will usually launch with "good performance" when the game is opened just after rebooting, dilly-dallying with other stuff first will usually result in a big performance hit. I Wonder if the observed liquorix improvement is due to trying the game just after rebooting.
I just tried with the vanilla arch linux kernel and it gets me the same result as with the zen variant. Low frames and horrid performance. I think you're misleading people, man. It doesn't work. The only kernel that is able to bring good performance every time the game is loaded is linux-lqx. I know because I tested it many times. The crashes still exist and whenever they happen they crash the DE but don't lock up the system as with zen or vanilla kernels do, but the game can't be launched again unless the system is rebooted.
Can any one with amdgpu try setting the card's power_dpm_force_performance_level
to high
or profile_peak
I have RX7800xt and when setting to high, the game have better chance to run in better performance (~80% success rate).
The game's main menu can run either ~30fps or 60fps capped randomly with my setup
What I shared is what I consistently saw across a dozen reboots, but just because it happens with my configuration doesn't mean it'll also happen with yours
On Sun, Apr 7, 2024, 12:11 AM Frank-MN @.***> wrote:
I should note that in my experience with the default arch kernel, the game will usually launch with "good performance" when the game is opened just after rebooting, dilly-dallying with other stuff first will usually result in a big performance hit. I Wonder if the observed liquorix improvement is due to trying the game just after rebooting.
I just tried with the vanilla arch linux kernel and it gets me the same result as with the zen variant. Low frames and horrid performance. I think you're misleading people, man. It doesn't work. The only kernel that is able to bring good performance every time the game is loaded is linux-lqx. I know because I tested it many times. The crashes still exist and whenever they happen they crash the DE but don't lock up the system as with zen or vanilla kernels do, but the game can't be launched again unless the system is rebooted.
steam-2054970.log https://github.com/ValveSoftware/Proton/files/14895720/steam-2054970.log
— Reply to this email directly, view it on GitHub https://github.com/ValveSoftware/Proton/issues/7595#issuecomment-2041303073, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQZQ4EGWUNWV2NRSHKMLBHTY4DBPDAVCNFSM6AAAAABFD6R6SSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGMYDGMBXGM . You are receiving this because you were mentioned.Message ID: @.***>
I am definitely seeing amdgpu crashes for this game (both on liquorix and default kernels):
DD2-gfxhub-pagefault-liquorix-kernel.log DD2-gfxhub-pagefault-default-kernel.log
See error:
Also hwinfo and drivers:
I should note that in my experience with the default arch kernel, the game will usually launch with "good performance" when the game is opened just after rebooting, dilly-dallying with other stuff first will usually result in a big performance hit. I Wonder if the observed liquorix improvement is due to trying the game just after rebooting.
Here's a nice plot twist. After a fresh boot with the kernel under test I started the game 10 times and checked how often I got the good performance. Nothing else changed.
6.6.25-1-lts: 10% 6.8.4-arch1-1: 10% 6.8.4-lqx1-1-lqx: 20% 6.7.12-lqx1-1-lqx: 90% 6.7.9-arch1-1: 30%
Replying to https://github.com/ValveSoftware/Proton/issues/7595#issuecomment-2041470318
Do you have amd-pstate enable on your boot parameters? I have it on on both grub and systemd-boot (amd_pstate=active/guided) and the game launches at full speed in tandem with linux-lqx 6.8.4 every time. I'll try without the boot parameters and report back. I assume it will use acpi driver instead because that's what it's doing on intel cpus.
EDIT: There's no difference in performance but using acpi_freq driver hard locks the system whenever the game crashes.
Replying to #7595 (comment)
Do you have amd-pstate enable on your boot parameters? I have it on on both grub and systemd-boot (amd_pstate=enable/guided) and the game launches at full speed in tandem with linux-lqx 6.8.4 every time. I'll try without the boot parameters and report back. I assume it will use acpi driver instead because that's what it's doing on intel cpus.
EDIT: There's no difference in performance but using acpi_freq driver hard locks the system whenever the game crashes.
I'm normally on acpi_cpufreq, here are the results for amd_pstate. In all cases using governor performance.
6.8.4-lqx1-1-lqx + amd_pstate=guided: 10% 6.8.4-lqx1-1-lqx + amd_pstate=active: 0% 6.7.12-lqx1-1-lqx + amd_pstate=guided: 30% 6.7.12-lqx1-1-lqx + amd_pstate=active: 50%
I also tried to replicate the standout result from before, but that didn't quite end up panning out: 6.7.12-lqx1-1-lqx + acpi_cpufreq: 60%
After disabling VRR and locking to 60Hz, my gameplay is pretty much solid 60 fps with only drops to the 50s in vernworth. Perhaps not coincidentally, it seems like most, if not all, of my freezes take place in vernworth, which explains why I can go hours without freezing when I'm outside that city. All of this is my observation after several play sessions with the lqx kernel on AMD 7800x3d and 6800 XT.
New developments that might help us, linux gamers on Arch or Arch-based distros. TLDR. You can enable like this:
Create /etc/sysctl.d/80-gamecompatibility.conf and add this, vm.max_map_count = 2147483642 vm.min_free_kbytes = 1048576
EDIT: It might be already enabled by now on ARCH. You can check with this: cat /usr/lib/sysctl.d/10-arch.conf
One thing I've noticed is minimizing the game seems to make the game enter bad performance mode, I haven't seen it work the other way round yet. This is on EOS with the lqx kernel.
lqx kernel is the only kernel for me that reliably gets the "good performance" boot. The problem is that "good performance" has very frequent system hangs. So the options right now are 20-50fps but very rare hangs or 40-100 fps but frequent system hangs. Pick your poison.
Do you think it would still be possible to make it playable on the Steam Deck? I see in many videos that the performance monitor only shows 30 percent utilization for the CPU and around 60-70 for the GPU, which is too low for it to run properly. I think that 30 FPS would be possible with low graphics settings
I think it would depend on a Linux kernel rework specifically for that device.
On Mon, Apr 8, 2024, 2:38 PM Seisuke @.***> wrote:
Do you think it would still be possible to make it playable on the Steam Deck? I see in many videos that the performance monitor only shows 30 percent utilization for the CPU and around 60-70 for the GPU, which is too low for it to run properly. I think that 30 FPS would be possible with low graphics settings
— Reply to this email directly, view it on GitHub https://github.com/ValveSoftware/Proton/issues/7595#issuecomment-2043603432, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHTDTUYVZT2WSMM4M3HWA73Y4L54VAVCNFSM6AAAAABFD6R6SSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBTGYYDGNBTGI . You are receiving this because you commented.Message ID: @.***>
Replying to https://github.com/ValveSoftware/Proton/issues/7595#issuecomment-2041827913
Be careful with this, in the article it says that vm.max_map_count
will be set to 1048576, not 2147483642, you have these mixed up.
And I am not sure where from vm.min_free_kbytes
and value of 2147483642 come from, I wouldn't touch defaults on this one
Replying to #7595 (comment)
Be careful with this, in the article it says that
vm.max_map_count
will be set to 1048576, not 2147483642, you have these mixed up.And I am not sure where from
vm.min_free_kbytes
and value of 2147483642 come from, I wouldn't touch defaults on this one
I got it from some people who had it working fine for a while, but now that Arch released their fix officially I stuck to the distro's solution.
You are not only fiddling with things you have no idea how it will affect your kernel memory usage as well doing it completely wrong.
You are not only fiddling with things you have no idea how it will affect your kernel memory usage as well doing it completely wrong.
1. vm.max_map_count can't go above 1048576.
You can set vm.max_map_count
to 2147483647
(max value of signed 32bit int)
sudo sysctl -w vm.max_map_count=2147483647
vm.max_map_count = 2147483647
sudo sysctl -w vm.max_map_count=2147483648
sysctl: setting key "vm.max_map_count": Invalid argument
cat /proc/sys/vm/max_map_count
2147483647
The value 2147483642
is used by Valve for their Steam OS.
ssh deck@billli11-steampal cat /proc/sys/vm/max_map_count
2147483642
I understand you can put a i32, but do you have this much memory? You are basically putting 2TB to map memory. We gotta be careful when we tell people to do things that affect kernel usage. Mine is set default to 1GB because I can and needed for Star Citizen.
Here's the default result.
And here is with 2147483642 set for max_map_count. No difference.
What I am saying is: While I agree increasing this can help (which helped me a lot in many games) we need to be careful before telling people to put huge numbers
Just for lolz, I decided to test setting the performance governor on vanilla arch Linux and linux-zen just to see if the performance on this game would be similar to lqx Linux. Results, lqx outperforms both linux and linux-zen. I don't know what black magic liquorix developers enable on their linux kernel flavor.
I understand you can put a i32, but do you have this much memory? You are basically putting 2TB to map memory. We gotta be careful when we tell people to do things that affect kernel usage. Mine is set default to 1GB because I can and needed for Star Citizen.
The problem is the word can, the setting "can" set as high as max of i32, should or should not is a difference matter.
When accessing the options menu from the title screen or in-game, the cursor movement sound starts looping and it becomes impossible to exit the menu or change any options. It's not a total freeze, though, as the option categories can still be navigated. This happens on both Proton 9 and experimental.
I ran in to the same issue on Nvidia and was able to make it go away by disconnecting my HDMI capture card before starting the game.
That's interesting: I've read about many performance issues (and I can't even start a new game), but apparently there aren't many who share our options menu problem? I also noticed subtle flickering of the items on the right side of the screen, as if some input is rapidly switching between them. I don't have a capture card, but I've tried to isolate anything that might be considered an input device -- controllers, mice and keyboards, tablet, external audio interface, and so on -- but nothing seems to work in my case. I'm probably missing something.
Compatibility Report
System Information
I confirm:
Symptoms
Not possible to enable ray tracing in the options menu. DLSS can be enabled. Tried with launch options: PROTON_LOG=1 PROTON_ENABLE_NVAPI=1 VKD3D_CONFIG=dxr %command%
Log from starting to menu and quitting: steam-2054970.log
Also tried on Experimental bleeding-edge, which crashes immediately at the main menu if you run without PROTON_LOG and hangs on black screen at the same point when logging is enabled. Log after killing the process:
steam-2054970.zip
Reproduction
Start the game, check the graphics options