Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve ShadowMapManager slightly #7321

Merged
merged 1 commit into from
Nov 1, 2023
Merged

improve ShadowMapManager slightly #7321

merged 1 commit into from
Nov 1, 2023

Conversation

pixelflinger
Copy link
Collaborator

don't use FixedCapacityVector to store pointers to active shadowmaps, that's just not needed. They're all stored un a static array already and directional and spot shadows are partitioned.

This saves a couple heap allocations as well a an pointer dereference.

don't use FixedCapacityVector to store pointers to active shadowmaps,
that's just not needed. They're all stored un a static array already
and directional and spot shadows are partitioned. 

This saves a couple heap allocations as well a an pointer dereference.
@pixelflinger pixelflinger added the internal Issue/PR does not affect clients label Oct 31, 2023
@pixelflinger pixelflinger merged commit 919cfae into main Nov 1, 2023
12 checks passed
@pixelflinger pixelflinger deleted the ma/shadowmaps branch November 1, 2023 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Issue/PR does not affect clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants