fix(games): check Proton's log size every second

This commit is contained in:
Kurt Himebauch committed 2026-11-27 09:37:38 -05:00
1 parent 73718f1a8c
commit 842bea9fa5
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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-<appid>.log` and `steam-proton.log` every 2 s while the game runs and
watcher checks `steam-<appid>.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.
@@ -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:]