r/Gentoo • u/Realistic_Gas7454 • 9d ago
Discussion Gaming/Desktop optimizations
so, other than forking cachyos kernel, how to maximize gentoo for gaming and desktop use
7
Upvotes
r/Gentoo • u/Realistic_Gas7454 • 9d ago
so, other than forking cachyos kernel, how to maximize gentoo for gaming and desktop use
14
u/ftranschel 9d ago
You don't need to fork cachyos-kernel (unless you don't know what forking means), there are overlays available.
Other than that, run -O2 -pipe and -march=native as cflags and you're fine. Optimizing is overrated and that's not even gentoo's central selling point (for me at least).
3
u/krumpfwylg 9d ago
Kernel wise, there's not much you can do. Some people believe using BORE scheduler (or any other alternate sched.) improve gaming perfs, but that's not true, unless you're gaming && encoding a video && compiling a webengine && applying tons of photoshop filter all at the same time.
You may read this article on Arch wiki https://wiki.archlinux.org/title/Gaming but imo, only the part 5.1 is interesting for some games : increase vm_max_map_count, although the number suggested by their wiki is kinda overkill, 1048576 is enough.
Some say increasing the limit number of open files can help too, I've done it, but never noticed much differences, might be placebo, might work only with specific games. To do so, edit the
/etc/security/limits.conffile, add lines such as the following, and reboot.Once again, not sure those tweaks have a real impact on gaming perfs, but so far it didn't hurt my system.
2
u/falawexx 9d ago
buy new hardware
2
u/oost- 8d ago edited 8d ago
Might as well be placebo but I noticed better frame pacing on my shitty thinkpad after compiling most of my multimedia libs using -march=native -O3 -flto cflags, as well as mesa and vulkan-loader and some other X libraries and compiled WINE myself so that it links to my system libraries, as opposed to using a pre-built, self-contained proton build.
I don't think that'll make any difference anyway (I did it because I have nothing better to do) but I haven't had any issues with my system so you're welcome to try for yourself.
Also make sure that the NTSync module is loaded by the kernel and used by WINE/proton as that can make apps running under WINE significantly faster.
1
u/C1REX 8d ago
I personally prefer the Gentoo kernel over the CachyOS one. Try both before deciding.
The only optimisations I did were to set up power profile to performance and to disable eye candy in KDE and make it start with a clean session. It matches CachyOS performance for me.