this post was submitted on 30 Nov 2024
210 points (96.5% liked)

Linux

48681 readers
388 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

For me, it's Shared GPU memory.

you are viewing a single comment's thread
view the rest of the comments
[–] prole@lemmy.blahaj.zone 1 points 3 weeks ago (1 children)

Did you try their fix? Often it really is as easy as adding a launch option

[–] DieserTypMatthias@lemmy.ml 1 points 3 weeks ago (2 children)

I added game modern mangohud PROTON_ENABLE_NVAPI=1 %command% to the startup configuration and it still runs like shit. I'll try running it on a Windows VM (VMware as a hypervisor).

[–] prole@lemmy.blahaj.zone 3 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

I meant the:

-force-d3d12

one. Might need to put "%command%" after it, but I'm still not 100% sure what that even means and why its there so I dunno.

Edit: I would also check out the entry for the game on ProtonDB if you haven't already (sorry if someone else has already told you all this elsewhere in the thread) to see if anyone else has had similar issues: https://www.protondb.com/app/949230

I haven't played C:S2 yet, so I can't say personally, but it could just be a poorly optimized game.

[–] teawrecks@sopuli.xyz 2 points 3 weeks ago

The -force-d3d12 option is a param to the actual game, so it would go after %command% (or by itself if no prefixes are being added).

[–] teawrecks@sopuli.xyz 2 points 3 weeks ago

"Runs like shit" is expected when you're relying on paging to system memory every frame, step 1 is to avoid a crash from oom/failed alloc.

The next step is to reduce paging if possible. I see C:S2 has a min spec of a 4GB GPU. Assuming they actually tuned their game for such a card on windows, the unfortunate reality of proton/DXVK is that there's a bit of a memory overhead and lack of knowledge about residency priority, especially when translating a dx11 game.

DX12 maps to Vulkan more closely, so my hope is that the -force-d3d12 flag would give DXVK better info to work with (ex. hopefully the game makes use of dx12 heaps and placed resources, which are 1:1 with vulkan concepts, and dxvk can make use of that to better ensure the most important resources don't get paged out).