-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
backend: metalIssues with MetalIssues with Metalhelp requiredWe need community help to make this happen.We need community help to make this happen.platform: macosIssues with integration with macosIssues with integration with macostype: bugSomething isn't workingSomething isn't working
Description
Description
When alt-tabbing between applications I notice that sometimes (often, not always) the wgpu app will wait a full second before showing up after being hidden.
Repro steps
- On Mac, run
cargo r -p wgpu-example-02-hello-window
. - Use cmd-tab to switch to any other application that covers your entire screen (and more importantly: covers the wgpu-example).
- Use cmd-tab to switch back to the wgpu-example
- Observe that it takes exactly one second for the wgpu-example to show up
Expected vs observed behavior
Instant switching
Extra materials
Here's a screenshot of the stack trace after I added some extra profiling
scopes:
What is blocking is MetalLayerRef::next_drawable
.
Platform
macOS Tahoe 26.0.1
wgpu 27.0.0
Related issues
Metadata
Metadata
Assignees
Labels
backend: metalIssues with MetalIssues with Metalhelp requiredWe need community help to make this happen.We need community help to make this happen.platform: macosIssues with integration with macosIssues with integration with macostype: bugSomething isn't workingSomething isn't working