From 6e57af02af31547d19c5007087f869524d1e05a4 Mon Sep 17 00:00:00 2001 From: MaxsTechReview Date: Sat, 31 Oct 2026 23:49:56 -0400 Subject: [PATCH] perf: Little Nightmares keeps its render thread (+12.7% FPS on the Retroid Pocket Duo) (#1930) perf: Little Nightmares keeps its render thread (up to 13% more FPS on the Retroid Pocket Duo) --- tools/linuxfs/overlay/usr/local/bin/droiddeck-game-env | 6 ++++++ tools/tests/test_game_environment.py | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/tools/linuxfs/overlay/usr/local/bin/droiddeck-game-env b/tools/linuxfs/overlay/usr/local/bin/droiddeck-game-env index 410e8bf5cc..b25ccf2554 100755 --- a/tools/linuxfs/overlay/usr/local/bin/droiddeck-game-env +++ b/tools/linuxfs/overlay/usr/local/bin/droiddeck-game-env @@ -143,6 +143,12 @@ def protonfixes_off(game): return {"PROTONFIXES_DISABLE": "1"}, [], "umu-protonfixes off (its ALSA audio and VC++ installer steps fail here)" +@fix +def little_nightmares_threads(game): + if game.stem == "littlenightmares": + return {"PROTONFIXES_DISABLE": "1"}, [], "Little Nightmares: umu-protonfixes off (its -onethread puts the game and renderer on one thread)" + + @fix def caravan_sandwitch_feature_level(game): if "caravansandwitch.exe" in game.files or game.stem == "caravansandwitch-win64-shipping": diff --git a/tools/tests/test_game_environment.py b/tools/tests/test_game_environment.py index fc44cc50b1..8e6af2c567 100644 --- a/tools/tests/test_game_environment.py +++ b/tools/tests/test_game_environment.py @@ -800,6 +800,12 @@ class GameEnvironmentTest(unittest.TestCase): self.assertTrue(notes) self.assertEqual(MODULE["engine_fixes"]("/game/Game/DarkSoulsII.exe", []), ({}, [], [])) + def test_little_nightmares_keeps_its_render_thread(self): + env, extra, notes = MODULE["engine_fixes"]("/game/Little Nightmares/Atlas/Binaries/Win64/LittleNightmares.exe", []) + self.assertEqual((env, extra), ({"PROTONFIXES_DISABLE": "1"}, [])) + self.assertTrue(notes) + self.assertEqual(MODULE["engine_fixes"]("/game/Little Nightmares II/Moonlight/Binaries/Win64/LittleNightmaresII.exe", []), ({}, [], [])) + def test_game_cores_are_parsed_from_lists_and_ranges(self): parse = MODULE["parse_cores"] self.assertEqual(parse("0-3,6"), {0, 1, 2, 3, 6})