-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Window flashes white on launch on Windows #3625
Comments
Can reproduce this after upgrade to 0.24.0. OS: Windows 11 Preview Build 25997 |
Fixed in #3631. |
I also had this issue on macOS, did not do extensive testing though. |
This is a bug that can occur on Windows, previously it was fixed by only showing the window after the first frame was rendered, but the bug appeared again with egui 0.24.0. This commit fixes this bug by making the window invisible on startup. ## Before  ## After  <!-- Please read the "Making a PR" section of [`CONTRIBUTING.md`](https://github.com/emilk/egui/blob/master/CONTRIBUTING.md) before opening a Pull Request! * Keep your PR:s small and focused. * If applicable, add a screenshot or gif. * If it is a non-trivial addition, consider adding a demo for it to `egui_demo_lib`, or a new example. * Do NOT open PR:s from your `master` branch, as that makes it hard for maintainers to add commits to your PR. * Remember to run `cargo fmt` and `cargo cranky`. * Open the PR as a draft until you have self-reviewed it and run `./scripts/check.sh`. * When you have addressed a PR comment, mark it as resolved. Please be patient! I will review your PR, but my time is limited! --> Closes #3625.
Are both the |
Trying to use the error: failed to select a version for `web-sys`.
... required by package `wgpu v0.18.0`
... which satisfies dependency `wgpu = "^0.18.0"` of package `eframe v0.25.0 (https://github.com/emilk/egui.git?branch=master#7733d1d8)`
... which satisfies git dependency `eframe` of package `temp v0.1.0 (C:\Users\mrmon\PycharmProjects\temp)`
versions that meet the requirements `^0.3.64` (locked to 0.3.67) are: 0.3.67
the package `wgpu` depends on `web-sys`, with features: `GpuComputePassTimestampWrite` but `web-sys` does not have these features.
failed to select a version for `web-sys` which could resolve this conflict |
meta: This issue is currently "left behind" in the "0.24.1" milestone. Shouldn't it be moved into the rolling "Next Major Release" one now? |
@torokati44 good catch! |
I'm on Windows 10. The flashes are very inconsistent for me. Sometimes they're long, sometimes they're short, and sometimes there are no flashes at all. |
Can't reproduce this on eframe 0.27.2 |
Describe the bug
This was previously fixed in #1802, but was reintroduced in commit 1571027.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No window flash on startup.
Screenshots

Desktop (please complete the following information):
Additional context
Perhaps the
is_first_frame
check is broken, or the window is being created withset_visible(true)
in the first place, when it should start invisible until all assets are loaded.The text was updated successfully, but these errors were encountered: