Improving performance

From Linux Gaming
Revision as of 01:57, 5 February 2022 by Slouchy (talk | contribs) (Reverted edits by Aragorn (talk) to last revision by Slouchy)
Jump to navigation Jump to search

Major tweaks

  • Set your CPU/GPU into performance mode. For AMD GPUs this can be achieved with CoreCtrl. Open CoreCtrl, and add a profile for every game, or edit the global settings to your likings.
  • 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

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: https://www.reddit.com/r/linux_gaming/comments/cii545/linux_input_lag_analysis_v26des_windows_10_1809/
  • 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: https://zamundaaa.github.io/wayland/2021/12/14/about-gaming-on-wayland.html 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: https://www.reddit.com/r/linux_gaming/comments/rghr60/about_gaming_and_latency_on_wayland/hpox61p/?context=3

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.