mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 15:59:59 -04:00
sweep_pressure's second census, rel_census(cap, 1), ran whenever the released entries held more than their bound and less than 1.25 times what they may keep. Its line says "(kept past it while the card has room)". Without room, or without the hold, vk_tex_release.h trl_keep returns the bound itself, so keep equals cap. The census then also ran for bytes between the bound and 1.25 times it, which drop_stale was taking down anyway, and the label claimed room the card did not have. Now it runs only when keep > cap. The line stays for players: it is what tells why released textures stay past their bound (a 2026-11-13 session held 7,150 MiB against 4,008 and never said why), and at most one walk a minute, 60 a run, costs well under a millisecond. rel_census's comment says when the room census runs. Checks that passed: pass_cc_check on vk_texture.c, no new -Wall -Wextra warnings, tex_release_check (trl_keep's rule). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
407 KiB
407 KiB