2 Commits
Author SHA1 Message Date
Thomas MartinandClaude Opus 5.5 95b7378f98 Texture workers at the lowest priority; no upscale while a replacement loads
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]>
2026-11-10 16:53:31 +01:00
Thomas MartinandClaude Opus 5.5 3d0140c4cc Texture replacements: a player's PNG folder drawn instead of texture assets
<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]>
2026-11-10 14:33:35 +01:00