3 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
ArzarothandClaude Opus 5.5 5c129fabd9 [sc3/texture-upscale] fix(render): the edge filter cuts diagonals over the smooth image instead of replicating texels
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]>
2026-11-10 08:10:05 +01:00
ArzarothandClaude Opus 5.5 c24b3a17e8 [sc3/texture-upscale] feat(render): texture upscaling of a port's assets, off by default
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]>
2026-11-10 07:37:52 +01:00