Skip to content

Automatically enable headless mode when exporting #107931

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Jun 24, 2025

Fixes #43752

@KoBeWi KoBeWi added this to the 4.5 milestone Jun 24, 2025
@KoBeWi KoBeWi requested a review from a team as a code owner June 24, 2025 10:00
@beicause
Copy link
Contributor

Does this cause #94734? Also shader baker don't seem to work in headless mode (#102552 (comment))

@KoBeWi
Copy link
Member Author

KoBeWi commented Jun 24, 2025

Does this cause #94734?

It's the same as running export with --headless, so likely yes.
Headless mode has improved a lot since the last time this issue was being fixed, but seems like it still has problems and not sure if they will ever get fully resolved.

I guess the options are:

  • Make headless opt-out when exporting
  • Only do auto-headless when not using --import
  • Close the issue as WONTFIX

@Calinou
Copy link
Member

Calinou commented Jun 26, 2025

I would prefer we implement godotengine/godot-proposals#5790, then make --import and --export always use off-screen rendering. This way, operations that require a GPU keep working, but you don't see any visible editor window during export.

When doing so, we should make sure that using the offscreen DisplayServer should use the same CLI progress as headless.

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.

Command line exporting needlessly opens the editor window
3 participants