- F2 > Video gets a "Texture pack" checkbox when the player has a pack:
on / off (texture_pack = off), applied at once.
video::texturePackFolder() resolves the setting for the panel and apply.
- A larger copy (replacement or upscaled) already on the GPU is shared by
the copy object: a slot whose key changed for the same texture (TMB's
texture manager moves textures in VRAM, so their TEX0 changes) takes it
instead of sending it again. Unused copies stay up to 512 MB (LRU) and
are dropped when the replacements change.
- Larger uploads are limited to 4 MB a present (was 12): a full pack's
first 150 MB at a match's start no longer stalls presentation.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The upscaler's and the replacements' worker threads now run at the
lowest thread priority (Windows THREAD_PRIORITY_LOWEST, nice 10
elsewhere), so making a level's copies never takes a core from the game
or the present thread. A texture whose replacement is being read no
longer gets an upscaled copy too (with a full pack every texture was
made twice at a level's start). PS2X_TEXTURE_STATS also counts the
uploads since its last line.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
<identity>.png files (textureIdentity: the draw-list hash's texture
identity), the texture's size or 2, 4, 8 times it, read by worker threads
with a dependency-free PNG reader; a replacement takes precedence over
texture upscaling. texture_pack in video.ini, PS2X_TEXTURE_PACK, the user
folder's texture_pack by default; PS2X_TEXTURE_PACK_RELOAD=1 rescans.
For 60 fps: larger copies (replacements and upscaled copies) sent to the
GPU are limited to 12 MB a present. Without it TMB's 1P route at 4x
upscaling fell to 31 presents/s for ~20 s while its arena's copies
arrived; with it, it holds 60. A material without mip levels samples a
larger copy down to the texture's own size, so distant draws neither
alias nor cost more bandwidth.
Co-Authored-By: Claude Opus 5.5 <[email protected]>