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

Enable single-window mode by default in projects #50680

Merged

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Jul 21, 2021

There are many issues with using multiple windows by default:

  • Taking screenshots of a specific window will not capture subwindows. This also applies when recording a video using tools such as OBS.
  • Subwindows may not behave correctly when fullscreen mode is enabled, especially if exclusive fullscreen is implemented in the future to decrease input lag on Windows.
  • Subwindows do not inherit scaling applied by the 2d and viewport stretch modes. This is problematic for dropdown menus, as they will be tiny if using the 2d or viewport stretch mode and playing at a higher resolution than the project's base resolution.

"Subwindows" is quite general here, and also refers to dropdown menus (e.g. those spawned by OptionButton) and Control tooltips.

Therefore, it's safer to embed subwindows by default in projects. This will also avoid various surprises when upgrading projects from 3.x to 4.0.

Multi-window mode remains the default in the editor.

See discussion on the Godot Contributors Chat for more information.

There remains an open question: should we do this for custom Viewports by default?

There are many issues with using multiple windows by default:

- Taking screenshots of a specific window will not capture subwindows.
  This also applies when recording a video using tools such as OBS.
- Subwindows may not behave correctly when fullscreen mode is enabled,
  especially if exclusive fullscreen is implemented in the future
  to decrease input lag on Windows.

"Subwindows" is quite general here, and also refers to dropdown menus
(e.g. those spawned by OptionButton) and Control tooltips.

Therefore, it's safer to embed subwindows by default in projects.
Multi-window mode remains the default in the editor.
@Calinou Calinou requested a review from a team as a code owner July 21, 2021 01:58
@Calinou Calinou added this to the 4.0 milestone Jul 21, 2021
@jonbonazza
Copy link
Contributor

Thank you!

@aaronfranke
Copy link
Member

Related: #38647 and #48670.

Copy link
Member

@groud groud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only use the editor in single mode on my side, so that's good for me.

@aaronfranke
Copy link
Member

I think we should change the default in the editor to also be single-window mode, not just in projects.

@akien-mga
Copy link
Member

I think for the editor multiple window support is a highly expected feature in 4.0 so we need to keep it enabled to actually see and fix the bugs. We can reassess later on if we really can't make it non buggy.

But yes, for projects it makes sense to default to single-window mode.

@akien-mga akien-mga merged commit af976e4 into godotengine:master Oct 20, 2021
@akien-mga
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

5 participants