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]>
Replicated texels, filtered by the GPU, made painted textures (Soulcalibur
III's Tales of Souls map) blockier than the texture drawn as it is. A texel
with no diagonal edge is now interpolated as the smooth filter does; flat
areas stay exact.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Renderer::setTextureUpscale draws a Texture marked asset (decoded from the game's
own data: packs::decodeRecord sets it) from a copy 2x or 4x as large, made by
worker threads and kept by content; until it is made the texture is drawn as it
is. Two filters written from the published method descriptions: edge-directed
(xBR family, exact coverage per output texel) and Catmull-Rom with no ringing,
both premultiplied by alpha. A repeating texture is scaled with the opposite
edge as its neighbour. The game's mip levels sit k levels down and a level
chosen from Q or fixed moves with them. Off: the same GL calls as before.
Co-Authored-By: Claude Opus 5.5 <[email protected]>