Gate Render Diagnostics for MacOS#22359
Closed
kfc35 wants to merge 10 commits intobevyengine:mainfrom
Closed
Conversation
d6a058e to
1afbf12
Compare
f51aa56 to
ab68b1a
Compare
Contributor
|
I would rather have it be a feature (:bike: :hut: |
Member
|
A much simpler fix I found was to just feature gate
It appears to be affecting the latest MacOS version, so eventually all Mac users will hit this. Render diagnostics don't work on Mac anyway, so I don't see the harm in just gating the plugin on OS anyway. /// # Supported platforms
/// Timestamp queries and pipeline statistics are currently supported only on Vulkan and DX12.
/// On other platforms (Metal, WebGPU, WebGL2) only CPU time will be recorded.
Ah, so we probably don't want to gate the entire plugin, just the timestamp queries and similar, assuming that fixes the issue. |
Member
|
I have an alternative that is more surgical and seems to work: #22365 |
Contributor
Author
|
Nice! Closing this then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Objective
Help out with #22257
Solution
There is an open question about whether render diagnostics might be causing the flickering for MacOS, so this gates any render diagnostic code such that MacOS targets do not include them. They supposedly do not work on MacOS anyway, so this shouldn’t affect anything. (Should I also add ios as a
nottarget?)Testing
Unfortunately, I’m not affected by the bug, but hopefully other people can test this. If this actually solves the flickering problem, I can take this out of draft.
To try to see if this solves the issue, run
cargo run --example bloom_3d --features=trace_tracywith many instances and also several times, and see if you can get flickering. This should be done particularly if you are on MacOS, and please note which OS you are using (since it seems to only affect Tahoe but you never know)