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

Improve Operating System Testing demo #1124

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Oct 22, 2024

  • Display more return values of Engine/OS methods such as system fonts, memory information and security information.
  • Add headless support (the generated report is also printed to stdout).
  • Improve theming in the generated report.
  • Hide video adapter type if this information can't be queried in the current rendering method.
  • Update C# script for Godot 4.x platform names.

Tested on 4.3.stable.

Preview

Stitched report

Full report stitched from multiple screenshots, so you can see it in all it sglory.

Report

Headless support

From VS Code's integrated terminal:

image

- Display more return values of Engine/OS methods such as system fonts,
  memory information and security information.
- Add headless support (the generated report is also printed to stdout).
- Improve theming in the generated report.
- Hide video adapter type if this information can't be queried in the
  current rendering method.
- Update C# script for Godot 4.x platform names.
Comment on lines +46 to +48
if DisplayServer.get_name() == "headless":
# Workaround for <https://github.com/godotengine/godot/issues/52821>.
return ""
Copy link
Member Author

@Calinou Calinou Oct 22, 2024

Choose a reason for hiding this comment

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

Note that checking the audio driver name would be preferable, as you can use the Dummy audio driver but keep a non-headless display driver.

However, there's no reliable method to check for this that is exposed to scripting (see godotengine/godot#98435).

@Calinou Calinou merged commit 53d3f9c into godotengine:master Oct 23, 2024
1 check passed
@Calinou Calinou deleted the improve-os-test branch October 23, 2024 21:09
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.

2 participants