Linux Gamers May Soon See Less Mouse Lag in KDE Plasma
Gamers using KDE’s Plasma desktop have been suffering from a slight input delay in mouse movement that could lead to getting fragged.
Four milliseconds. Count them: one, two, three, four. That's the lag KDE Plasma gamers have been experiencing in comparison to Windows with mouse input. It might not sound like much, but when your game is on the line, those four milliseconds count.
Turns out (as reported by XDA Developers) a curious developer, Jakub Okoński, discovered this lag on KDE Plasma and decided to do something about it. Using a very small microcontroller attached to a light sensor to send input to his test PC, Okoński then configured the setup such that the test "mouse" would perform an in-game action (such as shooting a gun in a low-light location within the game and then grabbing the light created by the flash).
Using this test, Okoński discovered that mouse movement in KDE Plasma was 4ms slower than it is on Windows and that the lag was due to three different sources: an imprecise timer, a safety margin, and a GPU expectation.
After some work, Okoński was able to shave off nearly 1.2ms from the lag. It's not much, but it's certainly a start. Hopefully, this discovery will launch a broader effort in the KDE Plasma community to get that lag down to zero. With Linux on the rise for gamers, anything that can be done to improve the experience should be considered a must.
You can read more details about this deep dive into the KDE Plasma lag where Okoński concludes, "These improvements go some of the way to closing the gap between Linux and Windows. There’s about 1.1-1.2ms gained in the minimums, while the gap between platforms in their best measurements with VRR was somewhere around 4ms."
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Linux Gamers May Soon See Less Mouse Lag in KDE Plasma
Gamers using KDE’s Plasma desktop have been suffering from a slight input delay in mouse movement that could lead to getting fragged.
-
Three Lines of Code Improve Linux Storage Performance
A developer changed three lines of code, giving Linux storage performance a 5% bump.
-
AUR Hit Again with Malicious Packages
Once again the Arch User Repository is plagued by a high volume of malicious packages.
-
Alpine Linux 3.24 Features Fresh Desktops and a Newer Kernel
If you're a fan of Alpine Linux, it's time to upgrade because the latest version has been released with KDE Plasma 6.6, Gnome 50, and Linux kernel 6.18 LTS.
-
EU Open Source Strategy Plays Key Role in Tech Sovereignty Package
Comprehensive measures adopted by the European Commission aim to reduce dependency on non-EU countries.
-
Linux Foundation Report Indicates AI Driving Tech Hiring
Within growing security and skills gaps, AI has been found to be a positive driving force behind tech hiring trends in Europe.
-
United Nations Open Source Portal Goes Live
A new open source portal seeks to coordinate and scale open source efforts across the United Nations system.
-
KDE Linux Drops AUR
KDE Linux developers have dropped the Arch User Repository from the build pipeline due to security concerns; other distributions should consider doing the same.
-
California May Exempt Linux from Its Age-Verification Law
After backlash from the Linux community, California may be backing off on its promise to force all operating systems to verify age, but one platform may still have to comply.
-
Another Logic Bug Found in Linux Kernel
Qualys has discovered a vulnerability in the Linux kernel that can be used to elevate standard user privileges.
