Skip to content

perf(model): reuse block atlas readback - #625

Open
florishafkenscheid wants to merge 1 commit into
MCRcortex:devfrom
florishafkenscheid:pr/model-atlas-readback-cache
Open

perf(model): reuse block atlas readback#625
florishafkenscheid wants to merge 1 commit into
MCRcortex:devfrom
florishafkenscheid:pr/model-atlas-readback-cache

Conversation

@florishafkenscheid

Copy link
Copy Markdown

Caches Minecraft’s block-atlas CPU readback and reuses it while the underlying atlas texture remains unchanged.

In runtime testing with a 16384×16384 atlas, the initial readback took approximately 3.3 seconds. Subsequent Voxy renderer creation dropped from roughly 3.3 seconds to 21–51 ms.

The cache automatically invalidates when Minecraft replaces the atlas texture, such as during a resource reload.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant