Difference between revisions of "Improving performance"

From Linux Gaming
Jump to navigation Jump to search
(→‎Nvidia: add nvidia)
m (→‎Nvidia[1]: fix links)
Line 14: Line 14:
=== Nvidia<ref>https://www.reddit.com/r/linux_gaming/comments/sc9dv7/need_help_writing_wiki_article_about_how_to_tweak/hu54e1g/?context=3</ref> ===
=== Nvidia<ref>https://www.reddit.com/r/linux_gaming/comments/sc9dv7/need_help_writing_wiki_article_about_how_to_tweak/hu54e1g/?context=3</ref> ===


* The Arch Wiki is the best place to start: <nowiki>https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks#Overclocking_and_cooling</nowiki>
* The [https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks#Overclocking_and_cooling Arch Wiki] is the best place to start.
* Enable coolbits as the link explains. Good is, setting the coolbits value to 28 on anything currently supported (post-Fermi) to enable full control over the GPU (at least, as much control as you're allowed to be given).
* Enable coolbits as the link explains. Good is, setting the coolbits value to 28 on anything currently supported (post-Fermi) to enable full control over the GPU (at least, as much control as you're allowed to be given).
* Use GreenWithEnvy for overclocking, setting power limits (raise or lower) and fan curves. It's the closest alternative we have to MSI Afterburner (You should also be recommending Radeon Profile or CoreCtrl for AMD GPUs).
* Use GreenWithEnvy for overclocking, setting power limits (raise or lower) and fan curves. It's the closest alternative we have to MSI Afterburner (You should also be recommending Radeon Profile or CoreCtrl for AMD GPUs).
Line 21: Line 21:
* Use DKMS. Every distro that has proprietary nvidia driver support offers a DKMS version.
* Use DKMS. Every distro that has proprietary nvidia driver support offers a DKMS version.
* Go to <nowiki>https://github.com/lutris/docs/blob/master/InstallingDrivers.md</nowiki> to get minimal required drivers installed.
* Go to <nowiki>https://github.com/lutris/docs/blob/master/InstallingDrivers.md</nowiki> to get minimal required drivers installed.
* For Arch-based distributions, use TKG's <code>nvidia-all</code> repo, <nowiki>https://github.com/frogging-family/nvidia-all</nowiki> with <code>_dkms=""</code> set to true in <code>customization.cfg</code>.
* For Arch-based distributions, use TKG's <code>nvidia-all</code> [https://github.com/frogging-family/nvidia-all repo],  with <code>_dkms=""</code> set to true in <code>customization.cfg</code>.


== Optional ==
== Optional ==

Revision as of 14:23, 25 January 2022

Major tweaks

  • Disable composition. This can be done with a switch in Lutris settings. Right click the game -> Configure -> System options -> Disable desktop effects. This dramatically improves input lag and "smoothness" (at least on KDE. If I understand it correctly, this is not necessary on Gnome. Please edit this if you have more information). If you use KDE, you can manually disable composition with shift + alt + f12. The same combination re-enables it.
  • Enable Esync. Lutris: Right click the game -> Configure -> Runner options -> Enable Esync.
  • Or, even better, enable Fsync. You need to use a compatible Kernel (like Zen, linux-tkg, or Xanmod; kernel above 5.16 is compatible with F-sync out of the box), and enable it in Lutris: Right click the game -> Configure -> Runner options -> Enable Fsync

AMD/Nvidia specific tweaks

AMD

  • Set your CPU/GPU into performance mode. Use CoreCtrl to do this. Open CoreCtrl, and add a profile for every game, or edit the global settings to your likings.
  • Use Mesa drivers

Nvidia[1]

  • The Arch Wiki is the best place to start.
  • Enable coolbits as the link explains. Good is, setting the coolbits value to 28 on anything currently supported (post-Fermi) to enable full control over the GPU (at least, as much control as you're allowed to be given).
  • Use GreenWithEnvy for overclocking, setting power limits (raise or lower) and fan curves. It's the closest alternative we have to MSI Afterburner (You should also be recommending Radeon Profile or CoreCtrl for AMD GPUs).
  • Make sure to use a Proton version of 6.3, Experimental, Proton-6.21-GE-2 or later for Proton-GE and Proton-tkg/wine-tkg-git of 6.17 or greater (or build your own) for DLSS support. For Steam, you need to put PROTON_HIDE_NVIDIA_GPU=0 PROTON_ENABLE_NVAPI=1 %command% in your launch options (side note: Make sure that you put in your Steam/Proton article that there should only ever be one %command%).
  • For non-Steam games, use the latest lutris or wine-ge-custom build, with Lutris, and make sure to toggle on DLSS support in the Configure -> Runner options menu (though this might be better-suited to a Lutris article, which should exist). For non-Steam games, you also need a dxvk.conf file with dxgi.nvapiHack = False in it. You can just create one (mine is ~/Documents/dxvk.conf) and set DXVK_CONFIG_FILE=/path/to/dxvk.conf in your /etc/environment.
  • Use DKMS. Every distro that has proprietary nvidia driver support offers a DKMS version.
  • Go to https://github.com/lutris/docs/blob/master/InstallingDrivers.md to get minimal required drivers installed.
  • For Arch-based distributions, use TKG's nvidia-all repo, with _dkms="" set to true in customization.cfg.

Optional

  • Use FSR. This might dramatically improve your framerate in GPU limited games but will definitely hurt the image quality.

Input lag, Desktop Environments, and x11/Wayland:

  • It appears that KDE Plasma (X11) with no composition (currently) is (one of) the best regarding performance, and input lag. Gnome is also ok, but you should avoid Cinnamon. This might be outdated, but I can't find newer data.[2]
  • You should only use Wayland, if you can enable FreeSync, because otherwise it will force vsync. If you are using KDE, and you have FreeSync enabled, the performance and input lag should be close to KDE X11 with composition disabled.[3] The input lag will increase by the "half frame" that is displayed with tearing. It's basically the question whether or not you want to wait for the frame to be complete before displaying it. KDE Plasma is currently the best DE for Wayland.[4]

It should be noted that we are talking about milliseconds here (the best value is 20ms, the worst is 90ms). If you are not susceptible to this, you might not even notice. But generally speaking, the game will feel more responsive if your input lag is low. You might also notice stuttering if you 99th percentile is bad.