DioxusLabs / DioxusLabs/dioxus
White flash when opening window
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
**Problem**
When opening a window Dioxus desktop application, a white screen, seemingly without any content, flashes for a split second. This also happens while the app is already loaded and running, and an existing window is just un-minimized. It doesn't happen every time, but still very often (like 80%). The flash is very short, however, it's quite noticable when the actual app content has dark background. It also happens on release builds.
**Steps To Reproduce**
This doesn't seem to be limited to a specific Dioxus app. I tested it with the [calculator example](https://github.com/DioxusLabs/dioxus/blob/main/examples/calculator.rs). I just changed the CSS a bit to make background black so the issue is more noticable.
**Expected behavior**
There should be no white flash when opening a window.
**Screenshots**
https://github.com/user-attachments/assets/92075e6d-152e-49e9-beba-808e11bbd9e6
Note that the video is slightly slowed down to make the flash more noticable.
**Environment:**
- Dioxus version: 0.6.3
- Rust version: 1.88.0
- OS info: Windows 11
- App platform: desktop
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.