News for hackers. Stuff that matters.
Re:Baldur's Gate 3 Steam Deck – Native Version by klardotsh on Tuesday September 23, 2025 @11:45PM (#45356067)
This 12GB update managed to trigger the bizarre Steam behavior on my Linux desktop where the game patching process pegs all cores to 100% and thrashes the disk so hard the system eventually stops allowing eg. launching new processes (though the system isn't frozen stiff like running out of RAM - switching Niri desktops is fine, but launching eg. htop hangs forever, and eventually browsers stop responding). After walking away for two hours and coming back to the system still in this state, I gave up and hard-rebooted with the power button.

But if you survive the 12GB update process, I'm sure this is great news :) Maybe I'll finally have to make some time to play this game - bought it two years ago, but never ended up making time for it, despite having played Cyberpunk 2077 a time and a half, and most of Factorio: Space Age, since then.

Re:Baldur's Gate 3 Steam Deck – Native Version by skavi on Wednesday September 24, 2025 @12:16AM (#45356229)
A bit of a tangent, but I’ve seen these issues mentioned before and to me it’s always felt like more the OS’s fault than Steam’s. Like shouldn’t Steam be free to express full utilization of the available resources? And isn’t it the OS’s job to manage QoS?

What am I missing here?

Re:Baldur's Gate 3 Steam Deck – Native Version by colechristensen on Wednesday September 24, 2025 @12:22AM (#45356261)
Systems tend to not have particularly strong guardrails against pathological access patterns which aren't trying to use 100% but a large multiple of that or are abusing some subsystem or another. The application is almost always also unresponsive.

Putting up those guardrails temporarily hides big problems more often than it avoids needing to have them solved.

Re:Baldur's Gate 3 Steam Deck – Native Version by cyberpunk on Wednesday September 24, 2025 @01:20AM (#45356584)
BEAM handles this very gracefully. Shame preemptive scheduling isn't more common..
Re:Baldur's Gate 3 Steam Deck – Native Version by kaztal on Wednesday September 24, 2025 @12:16AM (#45356232)
Update was intense for me too. 12 gb with hotfixes, downloaded after kids had gone to bed. It took about 30 minutes to apply. That was about the allotted time for me.
Re:Baldur's Gate 3 Steam Deck – Native Version by mattmanser on Wednesday September 24, 2025 @12:38AM (#45356359)
I get that on windows when there's no enough space on my disk to install a whole other copy of the game being patched.

So for BG3, if you don't have 150Gb free on your disk, steam will download it on a different disk and then transfer it over, thrashing you disk.

It's bizarre, incredibly annoying, behaviour and I wish it would just ask so I'd know that was about to happen and just clean up some space. Or refuse the upgrade.

But steam want to force upgrades on users before you can play anything, which for single player games is incredibly frustrating. I get why they do it, but it's another one of those things where you feel like you aren't in control of the thing you paid a lot of money for.

Re:Baldur's Gate 3 Steam Deck – Native Version by OtomotO on Wednesday September 24, 2025 @02:23AM (#45356940)
Can you no longer disable updates on a per game basis?

You could do that in the past and I did occasionally for single player games because my internet connection wasn't the best and I did not want to waste the little time I could allocate for gaming.

Re:Baldur's Gate 3 Steam Deck – Native Version by whs on Wednesday September 24, 2025 @12:42AM (#45356377)
I had that with MHW and I nailed it down to shader (fossilize-replay - https://github.com/ValveSoftware/Fossilize).

From my guess, Steam support Vulkan shader pre-compilation so that you don't have to wait in game (like the infamous 10 min Monster Hunter Wilds startup delay). They also seems to also be able to download the compilation cache from Steam if someone already have done the process on the same GPU + driver version. Since fewer Windows games use Vulkan this feature is often not used, but on Linux most games will run on Vulkan (esp. Proton games with dxvk) you may experience the process more often.

Re:Baldur's Gate 3 Steam Deck – Native Version by pretzel5297 on Wednesday September 24, 2025 @02:35AM (#45357021)
Background shader pre-compilation does not use all cores by default and the only way to change that is to manually edit a file. So unless you're consciously changing it, you won't have this problem. It'll only use all cores when you launch the game.

I have been having the issue with the system hanging up when steam is doing big writes. I had assumed it was due to something wrong with my drive and was contemplating reformatting it.

Re:Baldur's Gate 3 Steam Deck – Native Version by voodooEntity on Wednesday September 24, 2025 @05:16AM (#45357974)
I have massive doubts about the "They also seems to also be able to download the compilation cache from Steam if someone already have done the process on the same GPU + driver version."

This would imply that if I already calculated the shaders for the current game state than i could reuse them and not have to go through the whole compilation step (if no changes happen inbetween).

Matter of fact, i have to recompile the shaders on every game start for every game, even if i restart the game just x times in a row.

For context: using linux/debian and basically running everything on vulcan

Re:Baldur's Gate 3 Steam Deck – Native Version by izacus on Wednesday September 24, 2025 @06:16AM (#45358357)
What are your doubts exactly?

Shader precompilation is a standard thing to do now - consoles mostly ship precompiled shaders for their GPU + driver combo, Steam Deck will also download precompiled shader for its Linux + AMD + driver version combo.

The infrastructure for that Steam side is there and is in active use.

Re:Baldur's Gate 3 Steam Deck – Native Version by voodooEntity on Thursday September 25, 2025 @03:33AM (#45370191)
Well my doubts are that the feature is actually working. Im not saying that precompiling shader doesnt exist neither it cant be done. But based on my comment, i doubt it working the way as described. Else i would not have to recompile those shaders every time for every game in my library.
Re:Baldur's Gate 3 Steam Deck – Native Version by whs on Wednesday September 24, 2025 @07:04AM (#45358712)
It's documented here https://store.steampowered.com/oldnews/35534?l=

I don't think I ever found more documents on this feature. I assume it might need lots of users with matching result to ensure that bad actor can't upload malicious shader.

Re:Baldur's Gate 3 Steam Deck – Native Version by voodooEntity on Thursday September 25, 2025 @03:34AM (#45370199)
Thank you for linking, and it makes sure to say you have to have a certain set of proofs to make sure no malicious code is injected as a precompiled shader sounds like a great place for exploitation.

Tho i would expect (naive me) that the shaders at least might be cached locally - which is not the case since as i mentioned in my comment have to recompile them for every game every time i start.

Re:Baldur's Gate 3 Steam Deck – Native Version by p_l on Wednesday September 24, 2025 @08:49AM (#45359565)
That depends on game actually passing exactly the same parameters to shader compiler and your GPU driver actually building and using the cache.

What fossilize does is it generates data of all the parameters passed to shader compilation, and then can trigger "offline" compilation before you run the game.

Re:Baldur's Gate 3 Steam Deck – Native Version by voodooEntity on Thursday September 25, 2025 @03:37AM (#45370218)
Thanks for the response, and ye i get that. But what my point is : i have to recompile the shaders for every game every time i start it. And as i mentioned even without updates or if i start the game multiple times in a row.

This just , from a technical stance, doesnt make sense to me.

As another commenter to my statement wrote, it might be to make sure enaugh people have the same result on my HW setup in order to make sure its not abused for maleware. That makes sense to me tho i still dont get why there is not at least some local steam client caching.

And while as mentioned this might not work with every game - well it works with none. Im talking about a quite big set of games. So maybe im just VERY unlucky and ALL games i play have dynamic params which as you mention would result in recompilations every time - will have to look if i can approve this somehow.

Alternativly, which is why i mentioned using debian, its a linux issue of some sort (just a guess).

Thanks for explaination tho

Re:Baldur's Gate 3 Steam Deck – Native Version by lomase on Thursday September 25, 2025 @03:02PM (#45377351)
That is a driver problem. Even if you don't have Steam in the system, the shaders are cached by the driver locally.

What Steam does is to skip the compilation and download it from a cdn.

In your case something is not letting the driver cache the compilation.

Re:Baldur's Gate 3 Steam Deck – Native Version by voodooEntity on Friday September 26, 2025 @01:17AM (#45382922)
Ic and makes sense. Need to take some time at some point and going to investigate it further - now i at least know where i gonne start. So far i just accepted it because well got enaugh projects to deal with already...

Thanks for the hint tho, if i should find the time to investigate that further this will definatly safe me some time on searching the cause-

Re:Baldur's Gate 3 Steam Deck – Native Version by xd1936 on Wednesday September 24, 2025 @08:55AM (#45359645)
No reason to doubt nor speculate. It's been a feature of Steam since 2017.

https://www.techpowerup.com/239687/latest-steam-client-beta-...

Re:Baldur's Gate 3 Steam Deck – Native Version by voodooEntity on Thursday September 25, 2025 @03:32AM (#45370186)
I don't doubt that this feature in theory exists, i doubt it works for the reasons i listed in my comment.
Re:Baldur's Gate 3 Steam Deck – Native Version by baq on Wednesday September 24, 2025 @01:20AM (#45356581)
The linux kernel’s handling of IO under memory pressure is abysmal. I have to tune dirty ratios and write back ages and swap and whatnot just to get the system to not hard lock when running multiple node microservices in stages which run fine, just slower, when starting them all at once on a MacBook.

Disclaimer: I don’t even like macOS.

Re:Baldur's Gate 3 Steam Deck – Native Version by hackernudes on Wednesday September 24, 2025 @10:43AM (#45361147)
I've had similar problems but no amount of tweaking vm and vfs cache settings helped. Swap or not, both 32gb and 128gb of ram. Manually reclaiming memory would un-lock the system (/sys/fs/cgroup/memory.reclaim).

I wrote a user space memory reclaimer and have not got a lockup since. https://gist.github.com/EBADBEEF/f168458028f684a91148f4d3e79...

Re:Baldur's Gate 3 Steam Deck – Native Version by baq on Wednesday September 24, 2025 @10:55AM (#45361293)
I don't know how to give more visibility to this hack, but it deserves it. Bookmarking and deploying on my boxen.
Re:Baldur's Gate 3 Steam Deck – Native Version by seviu on Wednesday September 24, 2025 @03:03AM (#45357209)
I had to free 100GB so that it has enough disk space.

I am amazed this game is even playable on the steam deck. Was trying to find an excuse to play it after cyberpunk. I guess this one it is…

Re:Baldur's Gate 3 Steam Deck – Native Version by mhitza on Wednesday September 24, 2025 @05:38AM (#45358082)
Are you using full disk encryption (LUKS) without enabling the Cloudflare contributed flags? Because that's the most common syndrome of high IO causing high CPU usage until lockup.
Re:Baldur's Gate 3 Steam Deck – Native Version by KolibriFly on Wednesday September 24, 2025 @08:17AM (#45359260)
If you survived the warzone of your desktop’s update process, BG3 is absolutely worth diving into
Re:Baldur's Gate 3 Steam Deck – Native Version by johnbellone on Wednesday September 24, 2025 @10:25AM (#45360888)
That pausing issue is plaguing me with several other titles. I think it tracks with background downloading of game updates, but haven’t had enough hours to entirely confirm it. What I did notice is that after installing Decky there are background jobs from some of the plugins that run native Linux updates (flatpak) and snapshotting.