Count held title-window copies against the memory budget #103
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T01:30:39Z.
Why
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.