-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Editor windows briefly flash white upon opening #58056
Comments
I'm not sure if we have any control over this, as Godot is a Win32 application and cannot force the use of dark window borders (which I believe affects the default window background color). This affects Godot 3.x too, but you don't notice it as much because windows are only created once for the project manager and editor (before the splash screen appears). |
There is a little bit of discussion about this issue over at stackoverflow. A few people there have mentioned that a call to SetWindowPos immediately after the window creation seems to stop the white flash. Feels like a bit of a workaround for strange behavior in the Microsoft API, but I'll give it a try in the coming days to see what effect it has. |
Update on some slight progress. From experimenting with the DisplayServer code, I didn't see any real difference using some of the workarounds mentioned. However, the problem being described there was the window incorrectly painting the background color as white before the initial paint, whereas I feel as though this problem is the delay between the window being created and the first paint/render. Looking at the code in the Windows platform DisplayServer we're not setting the background color to anything via the window class. I tested out hard coding a color in here that matched the editor interface "base" color Interesting observations are that the separate call to Also - there seemed to be a lot of unusual windows messages queued up between the window creation and the rendering that would no doubt be causing delays. On my system I was seeing a number of power broadcast messages which was quite strange. In short - no solution as yet, but by setting a background color we can make it less obtrusive until a solution is found. |
Fixed by #71289. |
Godot version
4.0.alpha2.official
System information
WIndows 10, Vulkan, RTX 2070 Super
Issue description
When the editor is in multi-window mode, all editor windows, such as the settings menus, are flashing white for a few frames before they appear.
This has actually been happening in every version of Godot 4 I've tried, including ones I built from source over a year ago.
ezgif.com-gif-maker.5.mp4
Steps to reproduce
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: