From 842bea9fa54540fc166b7df822b621212f7c7563 Mon Sep 17 00:00:00 2001 From: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> Date: Fri, 27 Nov 2026 09:37:38 -0500 Subject: [PATCH] fix(games): check Proton's log size every second --- docs/development/game-environment.md | 2 +- tools/linuxfs/overlay/usr/local/bin/droiddeck-game-debug | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/development/game-environment.md b/docs/development/game-environment.md index b3c59ebe20..5d780b1253 100644 --- a/docs/development/game-environment.md +++ b/docs/development/game-environment.md @@ -135,7 +135,7 @@ settings on the next launch. It does not change Steam probes or native Linux programs, whose ordinary output remains in the session log. Proton's log is held to its first 64 MiB, whichever setting turned it on: a -watcher checks `steam-.log` and `steam-proton.log` every 2 s while the game runs and +watcher checks `steam-.log` and `steam-proton.log` every second while the game runs and cuts them back, and later output continues after the cut. A game stuck in an exception loop otherwise writes gigabytes per run. diff --git a/tools/linuxfs/overlay/usr/local/bin/droiddeck-game-debug b/tools/linuxfs/overlay/usr/local/bin/droiddeck-game-debug index bbd5a6bae0..24147636b7 100644 --- a/tools/linuxfs/overlay/usr/local/bin/droiddeck-game-debug +++ b/tools/linuxfs/overlay/usr/local/bin/droiddeck-game-debug @@ -79,7 +79,7 @@ def apply_game_debug_logs(env, config=None, debug_dir=None): # exception wrote 3 GB per run. Truncating keeps the first part and frees the rest, and Proton's # appends continue from the new end. PROTON_LOG_CAP = 64 * 1024 * 1024 -PROTON_LOG_CHECK_S = 2 +PROTON_LOG_CHECK_S = 1 CAP_WATCH = r""" import os, stat, sys, time pid, limit, every, paths = int(sys.argv[1]), int(sys.argv[2]), float(sys.argv[3]), sys.argv[4:]