this post was submitted on 04 Sep 2023
17 points (94.7% liked)
Linux Gaming
15335 readers
3 users here now
Discussions and news about gaming on the GNU/Linux family of operating systems (including the Steam Deck). Potentially a $HOME
away from home for disgruntled /r/linux_gaming denizens of the redditarian demesne.
This page can be subscribed to via RSS.
Original /r/linux_gaming pengwing by uoou.
Resources
WWW:
Discord:
IRC:
Matrix:
Telegram:
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I've been having issues with GTA V on Linux too, with performance being heavily affected by a growing ram consumption that either just slows down the game, creates intense stutters, or just makes it freeze entirely by consuming every ram&swap available.
After trying a lot of different things, I have the following notes:
- Regarding FPS and/or stuttering
Using the Epic Games GTA V version, I've had very little success running it through Lutris (using the script for Epic Games available on their website), having severe problems regarding performance from what I assume were shader compiling shenanigans which caused constant heavy stutters, even in areas where shaders were supposedly being compiled/saved and shouldn't keep causing stutters.
I couldn't solve it there and instead just made a clean install through Heroic Launcher, which surprised me in not only having better performance for the game, fps-wise, but also not launching the Epic Store everytime you'd launch the game. Also no issues with shader compilation for me.
- Regarding ever-growing RAM usage
It seems to be an issue not only present in Linux, but also many forums I visited and videos on youtube I watched seem to point out that many users were affected by GTA V consuming ram endlessly, even in lowest settings, as if every area loaded is forever kept loaded into ram and swap even if they didn't need to. This excessive usage of memory lead to slowdowns from swap being used (slower than memory) or complete freezes (not sure if it got this aggressive for other users, but it happened occasionally to me).
To workaround this, I've found out that a few videos on the Windows version of the game mentioned using the
-memrestrict
launch argument to limit how much memory GTA V could work with. Unfortunately, this is either outdated (as it's no longer mentioned in Rockstar's support page for the game as it's available launch arguments) or simply does not apply on Linux.However, that method make me think of limiting the ram usage of the whole game using some kind of Linux tool, and one exists already and has been working out for me. Using the
systemd-run
command, I was able to limit the amount of memory used and have a much nicer experience playing the game, even online, without exhausting RAM or SWAP.In Heroic Games Launcher, I used it as a Wrapper as
--scope -p MemoryHigh=4G -p MemorySwapMax=4G
(my laptop has 8GB and a APU, so even with shared memory, this seems to work out ok, do try some other values for the limits as you see fit to your specs/situation)For more information on usage of systemd-run and it's arguments for resource control, refer to their [page](Specify the throttling limit on memory usage of the executed processes in this unit. Memory usage may go above the limit if unavoidable, but the processes are heavily slowed down and memory is taken away aggressively in such cases. This is the main mechanism to control memory usage of a unit.).
I don't generally play single-player GTA V, but for Online my results have been an fps range of 38-60, depending on the area (Night clubs, got my eye on you), but mostly it stays in the 48+ range.
OS: Nobara Linux 38 (Thirty Eight) x86_64
Kernel: 6.4.10-202.fsync.fc38.x86_64
CPU: AMD Ryzen 5 5500U with Radeon Graphics (12) @ 4.056GHz
GPU: AMD ATI 03:00.0 Lucienne (Using amdvlk driver for GTA V, do try the open-source one and see what works best for you)
Thank You for Putting your time for the reply :D. I appreciate it alot Fortunately,
By native performance what do you mean?
If it's regarding Windows, I haven't directly tested but found some YouTube videos regarding performance on the game for similar specs to my laptop's (I play in 720p with FSR on) Example