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

Fullscreen plus display resolution changes cause frozen fullscreen view #55280

Open
Jantho1990 opened this issue Nov 24, 2021 · 6 comments
Open

Comments

@Jantho1990
Copy link
Contributor

Jantho1990 commented Nov 24, 2021

Godot version

3.4.stable.official

System information

Windows 10, NVIDIA GeForce RTX 2060 (496.49), GLES3

Issue description

When running Godot with window resizing disabled, setting window size to the current display's resolution and toggling fullscreen on/off results in a fullscreen view that can't be interacted with.

Steps to reproduce

When running Godot with window resizing disabled (Project Settings -> Display -> Window -> Resizable), if OS.window_size is set to the current display's resolution (aka the window the app is currently in), and then OS.window_fullscreen is toggled on and off, the app shows a fullscreen view that can't be interacted with. If your game window was partially on a different window, then you are able to interact with that window, but the visual changes happen on the fullscreen view (which you still can't interact with directly).

Note: I was not able to reproduce this issue when window resizing was enabled, only when it was disabled.

Also, if you try to take a screenshot of the issue, the fullscreen view disappears and you only see the windowed version, so I couldn't get a screenshot of this issue. :P

I found #25427, which may or may not be related, but did not see an open issue for this bug currently.

Minimal reproduction project

FullscreenFreeze.zip

@Jantho1990
Copy link
Contributor Author

Jantho1990 commented Nov 24, 2021

It occurred to me that I can just take a picture of my screen. :P (Apologies for the very smudgy view on the left lol)
godot fullscreen bug

@Calinou
Copy link
Member

Calinou commented Nov 24, 2021

If your game supports fullscreen resolution, it should most likely support window resizing anyway. Therefore, I'd just allow resizing the window. It makes life more convenient for everyone 🙂

@Jantho1990
Copy link
Contributor Author

Unfortunately, I'm developing pixel-perfect games, so I can't allow arbitrary window resizing or it'll be too easy to get the window in a state where the pixel art looks janky.

@Calinou
Copy link
Member

Calinou commented Nov 25, 2021

Unfortunately, I'm developing pixel-perfect games, so I can't allow arbitrary window resizing or it'll be too easy to get the window in a state where the pixel art looks janky.

You can use an add-on such as https://github.com/Yukitty/godot-addon-integer_resolution_handler to enforce integer scaling.

@KoBeWi
Copy link
Member

KoBeWi commented May 4, 2022

Can confirm this in 3.5 beta. Not personally, but some players reported this issue in our game.

@Calinou
Copy link
Member

Calinou commented May 4, 2022

This may be due to the same cause as #60665.

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

3 participants