Skip to content
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

Blinking of the editor when it is running in full-screen mode and the game is started or exited #21475

Closed
qarmin opened this issue Aug 27, 2018 · 10 comments

Comments

@qarmin
Copy link
Contributor

qarmin commented Aug 27, 2018

Godot version:
3.1 5df9109

OS/device including version:
Windows 10 Intel HD 4600

Issue description:
When I try work on editor in full screen mode, any attempt to turn the game on or off resulted in the editor flashing.
I can't record it with OBS Studio because all screen is black.

Steps to reproduce:

  1. Open editor in full screen (SHIFT + F11)
  2. Run game/scene or close it
@qarmin
Copy link
Contributor Author

qarmin commented Nov 8, 2019

On master I can still reproduce this with Windows 10 1903 but not with Ubuntu 19.10

@Calinou
Copy link
Member

Calinou commented Nov 8, 2019

This is likely specific to the OS or graphics driver (or both). Fullscreen is handled differently on Windows compared to other platforms.

Can you reproduce this if you make Godot use borderless windows by default? Try replacing false with true here:

GLOBAL_DEF("display/window/size/borderless", false);

I'm not sure if the borderless setting is effective when using fullscreen though.

@Torguen
Copy link

Torguen commented Jan 4, 2020

The same thing happens to me with my nvidia gt 440

@raformatico
Copy link

Same thing to me, is there a way finally to fix it?

@Calinou
Copy link
Member

Calinou commented Jun 25, 2020

@raformatico Which OS and graphics card model do you have? Also, are you using the GLES3 or GLES2 renderer?

Does the issue go away if you enable Update Continuously in the Editor Settings?

@raformatico
Copy link

Specs:

  • Windows 10 Pro
  • Nvidia GTX 1060
  • GLES3

There is a change when I activate Update Continuously. The flickering continues but it occurs exactly at the moment I launch or stop the game. Without this property active this happens maybe 1 or 2 seconds after I take one of the mentioned actions.

Thank you for the extremely fast answer!

@viksl
Copy link
Contributor

viksl commented Sep 2, 2020

It's happening to me too. Win 10, nvidia gtx 1660Ti (latest drivers 452.06, checked the previous ones as well but same problem), both GLES3 and GLES2.

@cogwoz
Copy link

cogwoz commented Dec 8, 2020

Does the issue go away if you enable Update Continuously in the Editor Settings?

This fixed my issue of flickering footage when using the Godot editor in fullscreen mode in OBS (for tutorials).

With Update Continuously = false, this is what the footage looks like. This only is present in the footage.

flickering-2

My specs

  • Windows 10 Pro
  • Nvidia GTX 1660 Super
  • GLES3
  • Godot 3.2.3

I'm glad I could solve the editor flickering, but I also have a second or two of black screen when the project is run or closed. Not so much of an issue as I can edit those frames out of tutorials.

@Calinou
Copy link
Member

Calinou commented Dec 8, 2020

As a workaround, you could also turn the Godot editor into a borderless window using Borderless Gaming. This way, you won't have to enable Update Continuously which greatly increases CPU and GPU usage.

@Calinou
Copy link
Member

Calinou commented Apr 30, 2022

Closing in favor of #60665, as this is the same underlying cause.

This happens because Godot 3.x actually uses exclusive fullscreen if the window size matches the screen size (even if the Borderless project setting is enabled). You can work this around by setting the window size to be one pixel smaller on one of the axes.

This was remedied in Godot 4.0alpha by adding separate borderless window and exclusive fullscreen modes. Unfortunately, it's not easy to fix in Godot 3.x which doesn't use the backwards-incompatible DisplayServer abstraction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants