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

Stop copying the light probe array to the stack in the shader. #11805

Merged
merged 1 commit into from
Feb 10, 2024

Conversation

pcwalton
Copy link
Contributor

@pcwalton pcwalton commented Feb 10, 2024

This was causing a severe performance regression when light probes were enabled.

Fixes #11787.

This was causing a severe performance regression when light probes were
enabled.
@JMS55 JMS55 added this to the 0.13 milestone Feb 10, 2024
@JMS55 JMS55 added A-Rendering Drawing game state to the screen C-Performance A change motivated by improving speed, memory usage or compile times labels Feb 10, 2024
@re0312
Copy link
Contributor

re0312 commented Feb 10, 2024

seems fix #11787

@NthTensor
Copy link
Contributor

This really needs to get in for 0.13.

Copy link
Contributor

@Elabajaba Elabajaba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code seems fine. The comment for is_irradiance_volume is a bit ugly, but that's just nitpicking.

I'm still seeing a (significantly smaller) 5-10% regression at 4k (GPU timing for the Opaque3d pass, tested on bistro and synty castle scene on my 6800xt with locked clocks), but at 1080p this seems to have brought performance to the same as before irradiance volumes were merged.

@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Feb 10, 2024
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Feb 10, 2024
Merged via the queue into bevyengine:main with commit b6945e5 Feb 10, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Performance A change motivated by improving speed, memory usage or compile times S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Frame unstable in many_foxes example
6 participants