Fix convex hull benchmarks (multiple of 3) (#55)

The benchmark was bogus before. I missed this error:

        convex_hull_3d.gd:34 @ _bench_convex(): Ignoring surface 0, incorrect vertex count: 10000 (for PRIMITIVE_TRIANGLES).
        <C++ Error>    Condition "(len % 3) != 0" is true. Continuing.

Also tweaked the iteration count so it takes a reasonable time.
This commit is contained in:
Francisco Demartino
2024-02-01 15:02:49 -03:00
committed by GitHub
parent 42ba8d1999
commit 42fbc4008a

View File

@@ -1,7 +1,7 @@
extends Benchmark
const NUM_ITERATIONS := 100
const NUM_POINTS := 10_000
const NUM_ITERATIONS := 10
const NUM_POINTS := 1002 # Should be a multiple of three, triangles will be built with this.
const CLOUD_SIZE := 1.0
const POSITION := Vector3(0.0, 0.0, 0.0)