Skip to content

Implemented render target cache for shadow maps - #472

Open
hyperbx wants to merge 2 commits into
mainfrom
feature/rt-cache
Open

hyperbx wants to merge 2 commits into
mainfrom
feature/rt-cache

Conversation

@hyperbx

@hyperbx hyperbx commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

This PR implements a simple caching system around Sonicteam::RenderTargetContainer that currently just caches the shadow map array texture on resize.

This texture has no reason to be recreated on resize, unless the shadow resolution itself has changed, so this gives a considerable boost in performance when resizing, and fixes the game sometimes slowing down for several seconds after a resize.

This should (hopefully) also reduce memory usage on AMD GPUs that seem to somehow run out of memory during resizes.

@hyperbx hyperbx added this to the 1.0.1 milestone Nov 19, 2026
@hyperbx hyperbx added the gpu Related to GPU or Xenos Recomp label Nov 19, 2026

This branch has not been deployed

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

Labels

gpu Related to GPU or Xenos Recomp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant