mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 15:59:59 -04:00
When the decoder's scratch buffer could not be allocated, the upload logged it and still counted the texture as uploaded. The image of a new texture then held nothing, and nothing uploaded it again until the game next wrote its storage, which for most textures is never. vk_astc_record now tells that failure (-1) from the ones that cannot change, and the upload leaves such a texture as not uploaded: the lookups try it again every 30 frames until a decode succeeds. A WriteTexels whose decode has no memory is still only logged. The memory probe forces one failed scratch request and checks that the texture is left alone during its wait, is uploaded by the first lookup after it and then holds its blocks. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
248 KiB
248 KiB