mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-26 10:19:47 -04:00
856cbabffe
pass_slot_cap() limits a generation to what two generations fit in 256 MiB, but pass_gen_textures() allocated all 17 slots of each generation at internal-resolution size as soon as passes ran, whatever the cap: 34 textures, about 167 MB at 4x and 1.5 GB at 12x for at most two used slots. Slot textures are now made on first use, never past the cap, so the budget holds at any internal scale; a size change frees the old set, and context teardown frees every pass texture, backup and journal FBO and forgets their names (a new context no longer reuses dead ones). render_pass_stats reports image_textures and image_bytes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>