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

Allow the benchmark time limit to be changed by individual benchmarks #73

Merged
merged 3 commits into from
Jun 19, 2024

Conversation

OverloadedOrama
Copy link
Contributor

This allows individual benchmarks to change the benchmark time limit, which is requested for certain benchmarks, such as the physics ones (#72). Benchmarks that don't return a node are still unaffected by the limit, although I could change this if desired. This PR also sets the timer of all physics benchmarks to 10 seconds. rigid_body_2d.gd doesn't actually have any changes besides this, the rest of the changes were formatting made by the Godot editor itself.

Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

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

Tested locally, it works as expected.

Thanks!

@Calinou Calinou merged commit 331cd6d into godotengine:main Jun 19, 2024
@OverloadedOrama OverloadedOrama deleted the editable-timer branch June 19, 2024 21:10
OverloadedOrama added a commit to OverloadedOrama/godot-benchmarks that referenced this pull request Jun 25, 2024
Continuation of godotengine#73, fixes a crash when running C# physics benchmarks. Also sets the C# physics benchmarks to 10 seconds.
Calinou pushed a commit that referenced this pull request Jun 28, 2024
…mark time limit (#82)

- Allow the benchmark time limit to be changed by C# scripts.
  - Continuation of #73, fixes a crash when running C# physics benchmarks.
    Also sets the C# physics benchmarks to 10 seconds.
- Fix C# benchmarks not being loaded.
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