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

macOS shows scene prematurely when changing fullscreen with code #59743

Open
ztc0611 opened this issue Mar 31, 2022 · 1 comment
Open

macOS shows scene prematurely when changing fullscreen with code #59743

ztc0611 opened this issue Mar 31, 2022 · 1 comment

Comments

@ztc0611
Copy link
Contributor

ztc0611 commented Mar 31, 2022

Godot version

3.3.4-stable, 3.4.4.stable

System information

MacOS Monetary 12.3, GLES3, Apple M1

Issue description

This is possibly not actually a bug and might just be an unfortunate consequence of systems working as intended. If that is the case, apologies.

This happens when making a project that has an option to change your fullscreen state in-game, meaning you need to adjust fullscreen with code, from my knowledge requiring an autoload. (Mine reads/writes to a custom user settings file in user://)

If you launch a scene on MacOS and the project is set to adjust fullscreen in this way it doesn't do any updates before finishing the "enter fullscreen" animation, during which it shows the scene prior to any scripts running. This problem does not happen under any other circumstances I can find on MacOS. Uncertain about Windows or Linux.

I know using an Autoload means the code should execute with first priority, but I'm unsure if it should be this extreme. It is possible that the splash screen is technically being hidden prematurely, but I am unsure on that regard.

My.Movie.5.mp4

Steps to reproduce

Make an autoload that sets the window to fullscreen mode on boot.

In the main scene, make a ColorRect and give it a script to make it free itself during _ready(). Launch the project.

Minimal reproduction project

MacOS_FS_Ready.zip

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

2 participants