⚜ SteamCozy

Home / News / Schwarzerblitz

[Major Bug Fix] Steam Deck Input issues solved

Schwarzerblitz · Community Announcements · July 29, 2024

Read the original on Steam ↗
A major bug that caused the input to lag on Steam Deck or Linux + Proton while playing with a joypad has finally been fixed. Thank you for your patience and massive thanks to everyone who helped fixing it!

Long version



The bug


Several users reported input lag spikes after playing through the game's story or tutorial mode on Steam Deck. The issue only happened when playing with a joypad and only on Steam Deck or Linux + Proton (albeit more rarely), while Windows was completely unaffected.

The cause


Back in 2016, I edited the irrlicht source code to allow for detecting joypads more than once. The original behavior was to keep adding joypads at every new detection, effectively duplicating the list. This was fine at the time because the function to detect joypads was meant to be called only once, when the game started up.

My modification cleared the list of detected joypads before starting a new detection, to solve this issue. Unfortunately, what I didn't do was also releasing the already detected devices, which somehow still lingered in memory, causing the input events to be duplicated or missed entirely after enough detections had been triggered.

The solution


The solution to this bug was going back to that 2016 code and release all the previously detected devices before clearing the list. This apparently was the core of the issue.

Special thanks


My thanks go to the members of the community that helped me tackle this nasty bug, since I didn't own a Steam Deck to check it. In no particular order:

Schwarzerblitz MORE ON STEAMCOZYSchwarzerblitz 96.5% positive · 202 reviews Price tracking · player charts · similar games →