mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 20:45:43 +00:00
fix(games): check Proton's log size every second
This commit is contained in:
1 parent
73718f1a8c
commit
842bea9fa5
2 files changed
+2
-2
No files matched your search
@@ -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:]
|
||||
|
||||
Reference in new issue
Block a user