Stop scanning shader inputs when the warm-up time budget expires #7

Merged
HandshakeHackin merged 1 commit from upstream-pr/7 into beta 2026-11-25 16:21:06 +00:00
HandshakeHackin commented 2026-11-25 15:26:23 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-11-25T15:26:23Z.


VICTORY_WARM_SECONDS already stopped new translations inside a worker, but the directory walk kept reading subsequent files. Check the deadline before entering each root and before processing each entry. An in-progress read or translation can finish.

I compiled the original and patched warm-up functions in an isolated Rust harness on Linux, with two empty input files in separate roots. File-open monitoring showed two opens before the fix with a zero-second budget, zero opens after it, and two opens with a 30-second budget. No game files or GPU were involved.

<!-- greyfinch-sync:PastiiJay/klbf-lab:issue:6607922741 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/7). Originally posted by [HandshakeHackin](https://github.com/HandshakeHackin) on 2026-11-25T15:26:23Z. --- `VICTORY_WARM_SECONDS` already stopped new translations inside a worker, but the directory walk kept reading subsequent files. Check the deadline before entering each root and before processing each entry. An in-progress read or translation can finish. I compiled the original and patched warm-up functions in an isolated Rust harness on Linux, with two empty input files in separate roots. File-open monitoring showed two opens before the fix with a zero-second budget, zero opens after it, and two opens with a 30-second budget. No game files or GPU were involved.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
PastiiJay/klbf-lab!7
No description provided.