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

Enable depth writes during shadow pass and depth pass. Disable during color pass #80070

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

clayjohn
Copy link
Member

This fixes an unreported performance bug. Basically, without this change, the depth prepass did nothing

Tested with #68959 and verified the results in Renderdoc.

Performance without this change: 22 ms per frame
With this change: 18 ms per frame
Same scene in 3.5.1: 18 ms per frame

… color pass

This fixes an unreported performance bug. Basically, without this change, the depth prepass did nothing
@clayjohn clayjohn added bug topic:rendering performance cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release labels Jul 30, 2023
@clayjohn clayjohn added this to the 4.2 milestone Jul 30, 2023
@clayjohn clayjohn requested a review from a team as a code owner July 30, 2023 20:02
Copy link
Contributor

@BastiaanOlij BastiaanOlij left a comment

Choose a reason for hiding this comment

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

Oef, uh, yeah thats kinda uhm, interesting :)

LGTM, very important fix :)

@YuriSizov YuriSizov merged commit bffbc5d into godotengine:master Aug 1, 2023
13 checks passed
@YuriSizov
Copy link
Contributor

Thanks!

@YuriSizov
Copy link
Contributor

Cherry-picked for 4.1.2.

@YuriSizov YuriSizov removed the cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release label Sep 21, 2023
@clayjohn clayjohn deleted the GLES3-depth-prepass branch September 21, 2023 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants