-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Gate Render Diagnostics for MacOS #22359
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
Conversation
d6a058e to
1afbf12
Compare
f51aa56 to
ab68b1a
Compare
|
I would rather have it be a feature (:bike: :hut: |
|
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. |
|
I have an alternative that is more surgical and seems to work: #22365 |
|
Nice! Closing this then |
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)