Black window / artifacts when resizing
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 171
Description
## Bevy version
bevy = { version = "0.10.1"}
## Relevant system information
i7-12700h, rtx 3060, MUXed laptop that can either:
- render on nvidia, then send to iGPU to show on display (optimus graphics)
- hook the laptop screen directly to the nvidia card (w/ mux switch, no iGPU whatsoever)
- turn off nvidia card (everything renders on iGPU)
OS: ArchLinux 6.2.8-xanmod, backend: Vulkan, desktop environment: Gnome (X11)
## What went wrong
As seen in the videos in the discussion mentioned below, window gets black / gets black artifacts or freezes while resizing
## Additional information
Appears to be a known issue related to Vulkan, yet that wouldn't explain why I don't get any artifacts when using the iGPU.
https://github.com/SaschaWillems/Vulkan/issues/241
https://duckduckgo.com/?q=vulkan+black+window+when+resizing&t=newext&atb=v361-1&ia=web
This one mentions X11; I'll try running the app on wayland if I manage to make wayland work on my machine: maybe it's a mix between vulkan, x11 and discrete gpus (?)?
https://www.reddit.com/r/vulkan/comments/fqi59a/how_to_make_resizing_the_window_not_look_glitchy/
### Discussed in https://github.com/bevyengine/bevy/discussions/8580
Originally posted by **dennisorlando** May 9, 2023
Hi, I was wondering if this was a bug or something that I could fix. I can't get any info on the internet about this problem whatsoever, therefore I'm not sure how to even start tackling it.
I previously used the Speedy2d library and I recall having some similar problems with it, but now I just tried their "animation" example and it worked flawlessly
[Screencast from 2023-05-09 17-26-36.webm](https://github.com/bevyengine/bevy/assets/47061464/bff16c6e-6be5-40f3-9e2a-e33a6665f517)
The same problem occurs with bevy's official examples (I tried "2d_shapes" and "pbr"), which is why I'm not including any code
Contributor guide
Research direction
Start by reproducing the black window or resizing artifacts with the official 2d_shapes and pbr examples on the listed Arch Linux, X11, Vulkan, and GPU configurations. Read discussion 8580 and the linked Vulkan issue, then compare behavior across the NVIDIA, iGPU, and Wayland setups; done means identifying a reproducible cause and confirming that resizing no longer produces artifacts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- computer-graphics, desktop-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100