Skip to content

Conversation

tychedelia
Copy link
Member

Alternative fix to #20318. We have existing code making sure that we do work on a swapchain in CameraDriverNode. However, it's only protecting against the case where we have no cameras spawned. We also need to check that we actually did any rendering work, even if we have cameras in the scene.

Tested on macOS.

@tychedelia tychedelia added C-Bug An unexpected or incorrect behavior A-Rendering Drawing game state to the screen S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Aug 15, 2025
@tychedelia tychedelia added this to the 0.17 milestone Aug 15, 2025
Copy link
Contributor

@andriyDev andriyDev left a comment

Choose a reason for hiding this comment

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

This seems like a nice fix regardless - at least this way we don't end up with an uninitialized texture! I'd even be ok shipping without #20407 (though that still introduces a frame delay for real rendering which isn't great).

@alice-i-cecile alice-i-cecile added S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Aug 15, 2025
@tychedelia tychedelia added S-Needs-Review Needs reviewer attention (from anyone!) to move forward and removed S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged labels Aug 16, 2025
@tychedelia tychedelia requested a review from JMS55 August 16, 2025 02:00
@tychedelia tychedelia 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 Aug 16, 2025
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Aug 16, 2025
Merged via the queue into bevyengine:main with commit 7ce5abe Aug 16, 2025
34 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-Bug An unexpected or incorrect behavior S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants