Repository navigation
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Devin Review found 2 findings. Devin fixed 1 finding; 1 finding is left for you to triage below.
Fixed by Devin (1)
- Unused sprite index after cache removal — Removed SpriteEntry.index and its counter; nothing reads it after the per-sprite material cache removal.
There was a problem hiding this comment.
🔍 Atlas reload lacks live verification
The live rendering check is missing from the PR. Repeat F3+T in game to check animated terrain and measure VRAM across reloads.
Devin left this for you to triage: The in-game check (F3+T repeated, animated terrain, VRAM per reload) needs Windows + an RTX GPU, which Devin's Linux VM doesn't have. Recommend the author run tools\rtx.bat launch and note before/after VRAM and visuals in the PR before merging.
(Refers to this code)
Was this helpful? React with 👍 or 👎 to provide feedback.
Summary
Mod-side half of #110. On every atlas capture
BlockTextureManageruploaded GPU textures that nothing samples. A resource reload destroys and re-uploads them, and the runtime keeps destroyed textures in its cache, so each reload left more memory behind.What this PR removes:
captureAtlas()uploadedblock_atlas, andbuildAtlasMaterials()then replacedatlasAlbedowithatlas_albedo(after the atlas edits). Only the second upload is kept.s<i>_a,_n,_h,_r,_m,_s,_ssa,_e). Only the lazygetMaterial(SpriteEntry, int)path read them, and nothing in the repo calls it: terrain uses the atlas-level materials. That path is removed along with itsmaterialscache andforgetCachedCutoutSpriteMaterials().buildPBRbecomesscanPBR. It still computes the facts other code reads from each sprite (hasSSS, andlightColorfrom the emissive channel), but uploads nothing. The atlas-level PBR, SSS and emissive textures are unchanged. TheAGENTS.mdTextures section is updated to match.The runtime-side cache retention described in #110 still has to be fixed in dxvk-remix. This PR only stops the mod from feeding that cache.
Verification
renderer-core/srcandrtxremix-java/srcwith javac 21 and ran therenderer-core/testsuite through the JUnit console. 358 of 362 tests passed. The same 4 tests also fail onmainin that setup:CanonicalCaptureSemanticsTestneeds fixtures fromversions/.../test/resources, andDirectoryRuntimePayloadTestdepends on Windows file locking.Link to Devin session: https://nvidia-cloud.devinenterprise.com/sessions/b86e22769ec7473c926a194b84efd244
Open in Devin Desktop: https://nvidia-cloud.devinenterprise.com/desktop/session/b86e22769ec7473c926a194b84efd244?variant=devin
Requested by: @nvzkupu
👀 Devin fixed 1 finding · 1 finding for you to triage · Follow Devin's work