Optimizing Ubuntu Desktop for Gaming: A Guide to Boosting FPS and Running Windows Games Smoothly

Ubuntu tutorial - IT technology blog
Ubuntu tutorial - IT technology blog

The Reality: Why is Ubuntu Laggy for Gaming Right After Installation?

About six months ago, I decided to completely wipe my Windows partition and switch to Ubuntu 24.04 as my primary OS. While I spent time customizing the GNOME desktop on Ubuntu to suit my workflow, my initial experience with gaming was less than ideal. As a coder and a die-hard fan of Elden Ring and CS2, I was initially worried about performance. My fears were confirmed: right after installation, CS2—which usually ran at 144 FPS on Windows—suddenly dropped to 40-50 FPS, accompanied by incredibly annoying screen tearing.

The most common mistake is the “install and play” mindset. By default, Ubuntu prioritizes stability and power efficiency. The system throttles hardware instead of unleashing its full potential for gaming. If you’ve just finished a fresh install and encountered startup issues, it’s worth knowing how to fix Ubuntu GRUB errors before diving into deep system optimization.

Root Cause Analysis: 3 Bottlenecks Killing Your FPS

After many nights of tinkering, I identified three main barriers to a great Linux gaming experience:

  1. Outdated Graphics Drivers: Ubuntu’s default repositories often keep older driver versions to ensure stability. However, modern games require the latest drivers to optimize Vulkan instructions and fix rendering bugs.
  2. CPU Scaling Governor: Ubuntu typically sets the CPU to “Powersave” mode. During intense combat, the CPU fails to ramp up clock speeds quickly enough, causing sudden FPS drops (stuttering).
  3. Suboptimal Compatibility Layer: Running Windows games requires Proton. If you use the default Proton version provided by Steam, you may encounter black screens during cutscenes or mid-game crashes.

Steps to Unlock Performance on Ubuntu

1. Update to the Latest Graphics Drivers

For AMD or Intel cards, the open-source Mesa driver is the heart of the system. Instead of using the outdated version bundled with the OS, add the Kisak PPA to get the latest Mesa release, which can provide a 10-15% performance boost in DX12 titles. If you encounter stability issues with experimental drivers, you can always use PPA-Purge to safely revert to the original versions.

sudo add-apt-repository ppa:kisak/kisak-mesa
sudo apt update && sudo apt upgrade -y

For Team NVIDIA, steer clear of the “nouveau” driver. Go to Software & Updates -> Additional Drivers. Select the Proprietary version with the highest number (e.g., 550 or newer) to get full support for Ray Tracing and DLSS.

2. Install Feral GameMode

This is a small but mighty tool. GameMode forces the CPU into Performance mode and increases I/O priority for your game as soon as it launches. You can install it via the standard terminal, or use Nala on Ubuntu for a more readable output and parallel downloads.

sudo apt install gamemode

To check if the tool is ready, run the command: gamemoded -t. If it displays “Test passed”, you’re good to go.

3. Use Proton GE (GloriousEggroll)

Proton GE is a community-built version that includes video fixes (Media Foundation) often missing from the official Steam version. The easiest way to install it is via ProtonUp-Qt through Flatpak:

sudo apt install flatpak
flatpak install flathub net.davidotek.pupgui2

Open ProtonUp-Qt, select “Add version”, and install the latest GE-Proton. Then, in Steam, right-click your game -> Properties -> Compatibility. Check “Force the use of a specific Steam Play compatibility tool” and select the GE version you just downloaded.

Optimal Workflow: Don’t Forget Launch Options

Setting up the software is one thing; activating it correctly is key. Don’t let the system guess—give Steam direct instructions.

Step 1: Configure Launch Options
Right-click the game in Steam -> Properties -> General. In the Launch Options field, paste the following command:

gamemoderun %command%

If you’re using an NVIDIA card and want to minimize input lag, use:

__GL_MaxFramesAllowed=1 gamemoderun %command%

Step 2: Monitor Stats with MangoHud
MangoHud allows you to monitor FPS, temperature, and RAM usage in real-time. It’s just as detailed as MSI Afterburner on Windows.

sudo apt install mangohud
# Add to Launch Options:
mangohud gamemoderun %command%

Real-World Results After Tweaking

On a Dell G15 laptop (RTX 3050), Elden Ring went from stuttering to a stable 60 FPS on High settings. The frametime (latency between frames) is now flat, with no more annoying stutters. Furthermore, the absence of background processes like Windows Update or Antivirus frees up more RAM and keeps the machine running cooler.

With just 15 minutes of configuration, Ubuntu can fully replace Windows for daily entertainment. Whether you’re fragging enemies or building your own ‘Personal Netflix’ with Jellyfin, the Linux ecosystem has never been stronger. Happy gaming and smooth rank-climbing on Linux!

Share: