Tree perf (#179)

- Optimizations for falling trees.
- Increased B3_MAX_MESH_CONTACT_TRIANGLES  from 256 to 512.
This commit is contained in:
Erin Catto 2026-10-06 09:51:48 -07:00 • committed by GitHub
commit 16f7f4cf4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
36 changed files with 1926 additions and 1110 deletions

View file

@ -1,9 +1,9 @@
threads,ms
1,5092.19
2,2694.4
3,1855.5
4,1450.33
5,1195.15
6,1032.87
7,924.237
8,843.199
1,5092.98
2,2683.53
3,1843.54
4,1439.27
5,1192.14
6,1033.23
7,923.268
8,846.347

1 threads ms
2 1 5092.19 5092.98
3 2 2694.4 2683.53
4 3 1855.5 1843.54
5 4 1450.33 1439.27
6 5 1195.15 1192.14
7 6 1032.87 1033.23
8 7 924.237 923.268
9 8 843.199 846.347

View file

@ -1,9 +1,9 @@
threads,ms
1,1308.56
2,683.543
3,461.149
4,351.313
5,283.848
6,239.34
7,208.293
8,185.43
1,1332.87
2,689.909
3,463.412
4,352.244
5,282.623
6,239.524
7,207.957
8,185.382

1 threads ms
2 1 1308.56 1332.87
3 2 683.543 689.909
4 3 461.149 463.412
5 4 351.313 352.244
6 5 283.848 282.623
7 6 239.34 239.524
8 7 208.293 207.957
9 8 185.43 185.382

View file

@ -1,9 +1,9 @@
threads,ms
1,11252.9
2,5915.73
3,4113.86
4,3194.52
5,2626.44
6,2261.77
7,2009.22
8,1824.68
1,11236.9
2,5885.02
3,4063.23
4,3147.56
5,2601.85
6,2248.15
7,2001.73
8,1822.96

1 threads ms
2 1 11252.9 11236.9
3 2 5915.73 5885.02
4 3 4113.86 4063.23
5 4 3194.52 3147.56
6 5 2626.44 2601.85
7 6 2261.77 2248.15
8 7 2009.22 2001.73
9 8 1824.68 1822.96

View file

@ -1,9 +1,9 @@
threads,ms
1,1067.06
2,558.46
3,390.698
4,300.188
5,249.834
6,218.912
7,193.65
8,175.819
1,1099.9
2,567.505
3,392.791
4,302.607
5,250.85
6,218.705
7,193.731
8,175.831

1 threads ms
2 1 1067.06 1099.9
3 2 558.46 567.505
4 3 390.698 392.791
5 4 300.188 302.607
6 5 249.834 250.85
7 6 218.912 218.705
8 7 193.65 193.731
9 8 175.819 175.831

View file

@ -1,9 +1,9 @@
threads,ms
1,5.0616
2,6.9262
3,7.827
4,8.2244
5,8.7631
6,8.6223
7,8.7636
8,8.9294
1,5.2893
2,6.8593
3,8.2452
4,8.7965
5,8.88
6,8.8702
7,9.0274
8,9.3917

1 threads ms
2 1 5.0616 5.2893
3 2 6.9262 6.8593
4 3 7.827 8.2452
5 4 8.2244 8.7965
6 5 8.7631 8.88
7 6 8.6223 8.8702
8 7 8.7636 9.0274
9 8 8.9294 9.3917

View file

@ -1,9 +1,9 @@
threads,ms
1,1163.37
2,605.215
3,411.543
4,307.527
5,249.396
6,216.535
7,184.334
8,165.442
1,1252.28
2,603.36
3,412.994
4,311.517
5,249.951
6,210.331
7,185.742
8,162.021

1 threads ms
2 1 1163.37 1252.28
3 2 605.215 603.36
4 3 411.543 412.994
5 4 307.527 311.517
6 5 249.396 249.951
7 6 216.535 210.331
8 7 184.334 185.742
9 8 165.442 162.021

View file

@ -0,0 +1,9 @@
threads,ms
1,1287.05
2,665.133
3,463.048
4,360.315
5,300.983
6,262.112
7,236.27
8,214.998
1 threads ms
2 1 1287.05
3 2 665.133
4 3 463.048
5 4 360.315
6 5 300.983
7 6 262.112
8 7 236.27
9 8 214.998

View file

@ -1,9 +1,9 @@
threads,ms
1,2038.39
2,1110.3
3,773.18
4,603.397
5,502.292
6,434.461
7,389.414
8,355.206
1,1832.38
2,995.626
3,699.212
4,547.216
5,456.76
6,396.698
7,356.024
8,325.755

1 threads ms
2 1 2038.39 1832.38
3 2 1110.3 995.626
4 3 773.18 699.212
5 4 603.397 547.216
6 5 502.292 456.76
7 6 434.461 396.698
8 7 389.414 356.024
9 8 355.206 325.755

View file

@ -1,9 +1,9 @@
threads,ms
1,596.258
2,328.927
3,231.57
4,187.904
5,159.347
6,142.58
7,131.034
8,124.711
1,625.709
2,330.685
3,233.065
4,187.897
5,160.823
6,143.489
7,131.729
8,125.636

1 threads ms
2 1 596.258 625.709
3 2 328.927 330.685
4 3 231.57 233.065
5 4 187.904 187.897
6 5 159.347 160.823
7 6 142.58 143.489
8 7 131.034 131.729
9 8 124.711 125.636

View file

@ -1,9 +1,9 @@
threads,ms
1,2919.32
2,1674.26
3,1200.43
4,960.786
5,821.659
6,728.967
7,669.058
8,626.733
1,2274.2
2,1328.84
3,960.76
4,782.728
5,679.039
6,633.552
7,567.926
8,541.742

1 threads ms
2 1 2919.32 2274.2
3 2 1674.26 1328.84
4 3 1200.43 960.76
5 4 960.786 782.728
6 5 821.659 679.039
7 6 728.967 633.552
8 7 669.058 567.926
9 8 626.733 541.742

View file

@ -1,9 +1,9 @@
threads,ms
1,167.468
2,110.54
3,87.5729
4,77.6966
5,73.9776
6,71.7265
7,69.6889
8,69.3954
1,103.803
2,69.6303
3,59.0807
4,53.6692
5,50.927
6,49.0812
7,48.3124
8,47.7709

1 threads ms
2 1 167.468 103.803
3 2 110.54 69.6303
4 3 87.5729 59.0807
5 4 77.6966 53.6692
6 5 73.9776 50.927
7 6 71.7265 49.0812
8 7 69.6889 48.3124
9 8 69.3954 47.7709

View file

@ -1,9 +1,9 @@
threads,ms
1,657.535
2,386.678
3,284.076
4,245.238
5,223.137
6,208.401
7,197.529
8,194.169
1,357.883
2,217.829
3,169.684
4,147.551
5,135.274
6,126.444
7,122.615
8,119.284

1 threads ms
2 1 657.535 357.883
3 2 386.678 217.829
4 3 284.076 169.684
5 4 245.238 147.551
6 5 223.137 135.274
7 6 208.401 126.444
8 7 197.529 122.615
9 8 194.169 119.284

View file

@ -1,9 +1,9 @@
threads,ms
1,285.043
2,176.584
3,135.305
4,117.663
5,109.496
6,104.289
7,101.186
8,98.9602
1,162.522
2,103.266
3,84.4805
4,74.2779
5,70.0241
6,66.3925
7,64.5923
8,63.7022

1 threads ms
2 1 285.043 162.522
3 2 176.584 103.266
4 3 135.305 84.4805
5 4 117.663 74.2779
6 5 109.496 70.0241
7 6 104.289 66.3925
8 7 101.186 64.5923
9 8 98.9602 63.7022

View file

@ -1,9 +1,9 @@
threads,ms
1,15669.7
2,8410.7
3,5793.28
4,4493.58
5,3722.97
6,3219.45
7,2849.15
8,2562.49
1,15659.7
2,8342.79
3,5752.42
4,4424.66
5,3715.88
6,3211.79
7,2848.87
8,2534.36

1 threads ms
2 1 15669.7 15659.7
3 2 8410.7 8342.79
4 3 5793.28 5752.42
5 4 4493.58 4424.66
6 5 3722.97 3715.88
7 6 3219.45 3211.79
8 7 2849.15 2848.87
9 8 2562.49 2534.36

View file

@ -228,6 +228,7 @@ int main( int argc, char** argv )
{ "large_pyramid", NULL, CreateLargePyramid, NULL, NULL, 200 },
{ "large_world", GetLargeWorldCapacity, CreateLargeWorld, NULL, StepLargeWorld, 500 },
{ "many_pyramids", NULL, CreateManyPyramids, NULL, NULL, 100 },
{ "mesh_drop", NULL, CreateMeshDropBenchmark, DestroyMeshDropBenchmark, NULL, 170 },
{ "rain", GetRainCapacity, CreateRain, DestroyRain, StepRain, 400 },
{ "sleep", GetSleepCapacity, CreateSleep, NULL, StepSleep, 300 },
{ "spinner", GetSpinnerCapacity, CreateSpinner, DestroySpinner, NULL, 800 },