Count held title-window copies against the memory budget #103
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!103
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-103"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@TaynanGT on GitHub · 2026-11-27 01:30 UTC · original
TaynanGT:fix/count-held-loose-windows→main· +87 −27 · 1 files · 1 commits · merged 2026-11-27 02:28 UTCWhy
On
cc9ed86, the optionalVICTORY_WINDOW_BUDGET_MBlimit compares the budget with only the windows that can already be evicted. With 3,072 MiB held by slots or lists and 1,536 MiB idle, a 2,048 MiB budget selects nothing to free.The sweep now counts every unique copied window against the limit in the Watch and High RAM bands. It releases eligible windows oldest first, up to the amount it can safely retire. A window that views the title's memory directly contributes zero copied bytes. Windows that have already reached the ordinary idle timeout remain eligible even when the total fits. The setting remains opt-in.
Validation
shadow.rsblobs matched before the port. The resulting blob matches KainanP's exact GPL patch.Related to #97. Thanks to KainanP for the fix and to FunWithFlagsDev for the original analysis.