godotengine / godot-benchmarks

Collection of benchmarks to test performance of different areas of Godot
MIT License
122 stars 32 forks source link

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

Closed OverloadedOrama closed 3 months ago

OverloadedOrama commented 3 months ago

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.