Commit Graph

6 Commits

Author SHA1 Message Date
Emmanouil Papadeas
331cd6d36c Allow the benchmark time limit to be changed by individual benchmarks (#73) 2024-06-19 16:32:43 +02:00
myaaaaaaaaa
0fedc97bb1 Rework benchmark API to use functions rather than scenes as the base unit 2023-02-04 22:15:59 -05:00
Hugo Locurcio
9831ab3c6d Improve benchmark registration
- Automatically register benchmarks based on `.tscn` files found in the
  `benchmarks/` folder.
  - `manager.gd` no longer needs to be edited every time a benchmark is added.
- Use full path for include/exclude glob instead of just the last category's name.
- Move benchmarks to a subfolder.
- Position the benchmark label away from the window's edges for better readability,
  and increase its outline size.
- Run the dynamic light cull with shadows benchmark
  (there was a `.tscn` file but it was unused).
2022-08-22 23:01:35 +02:00
Hugo Locurcio
e147a9fea9 Improve JSON copy, improve debug label, tweak code style
- JSON is now generated using the JSON class and includes Godot version
  information, CPU information and GPU information. Its base structure
  has changed.
- Tweak debug label visibility and mention frame setup time within.
- Tweak code style to follow the GDScript style guide (and fix a typo
  in `benchmark_group`).
2021-12-07 12:37:53 +01:00
Hugo Locurcio
b416f5792a Add initial GDScript tests
- Add wall clock time measurement on benchmarks.
- Allow tests to not have a predefined time limit.
  - This is required for scripting tests.
- Fix culling tests not reporting GPU time.
2021-11-29 14:43:11 +01:00
Juan Linietsky
2dd866ef42 Add a benchmarking suite
-Culling benchmarks only for now
2020-12-24 00:00:45 -03:00