E525 Fix Solari flickering by ordering solari_lighting by alice-i-cecile · Pull Request #23304 · bevyengine/bevy · GitHub
[go: up one dir, main page]

Skip to content

Fix Solari flickering by ordering solari_lighting#23304

Queued
alice-i-cecile wants to merge 1 commit intobevyengine:mainfrom
alice-i-cecile:solari-flickering-fix
Queued

Fix Solari flickering by ordering solari_lighting#23304
alice-i-cecile wants to merge 1 commit intobevyengine:mainfrom
alice-i-cecile:solari-flickering-fix

Conversation

@alice-i-cecile
Copy link
Member

Objective

Solari was flickering when DLSS was enabled after #23036.

Solution

My intuition was that this was a pre-existing system ordering issue, exposed by happenstance due to tweaks in the exact topo-sort being used.

That's consistent with both flickering and spooky action at a distance.

After some digging, I found that solari_lighting's system ordering was not consistent with deferred_lighting, and was free-floating inside of Core3dSystems::MainPass).

Ordering this before the main_opaque_3d_pass fixed the bug! I think the root ambiguity has something to do with the order in which GPU commands are queued, but that's a bit beyond my expertise.

This bug likely exists without DLSS, and before the linked PR, but is hard to surface due to the topo sort of systems we were typically falling into.

Testing

cargo run --example solari --features="bevy_solari https free_camera dlss"

@alice-i-cecile alice-i-cecile added this to the 0.19 milestone Mar 11, 2026
@alice-i-cecile alice-i-cecile added C-Bug An unexpected or incorrect behavior A-Rendering Drawing game state to the screen P-Regression Functionality that used to work but no longer does. Add a test for this! X-Uncontroversial This work is generally agreed upon D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Mar 11, 2026
@github-project-automation github-project-automation bot moved this to Needs SME Triage in Rendering Mar 11, 2026
Copy link
Member
@tychedelia tychedelia left a comment

Choose a reason for hiding this comment

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

tyyyy

@alice-i-cecile alice-i-cecile added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Mar 11, 2026
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Mar 11, 2026
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-Bug An unexpected or incorrect behavior D-Straightforward Simple bug fixes and API improvements, docs, test and examples P-Regression Functionality that used to work but no longer does. Add a test for this! S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it X-Uncontroversial This work is generally agreed upon

Projects

Status: Needs SME Triage

Development

Successfully merging this pull request may close these issues.

4 participants

0