gkjohnson / three-bvh-csg

A flexible, memory compact, fast and dynamic CSG implementation on top of three-mesh-bvh
MIT License
552 stars 45 forks source link

Use bvh indirect buffer #137

Closed gkjohnson closed 10 months ago

gkjohnson commented 10 months ago

Related #136

TODO

gkjohnson commented 10 months ago

Before

mean median min max
three-bvh-csg 9.91504 ms 9.92644 ms 9.68029 ms 11.00950 ms
three-bvh-csg w/ rebuild 23.60508 ms 23.55558 ms 23.17083 ms 36.81537 ms
three-csg-ts 2289.87517 ms 2280.94825 ms 2248.35512 ms 2367.63375 ms
three-csg 2307.62890 ms 2294.79387 ms 2276.70775 ms 2340.80837 ms
three-csg w/ rebuild 2314.73689 ms 2312.85717 ms 2250.26533 ms 2358.40308 ms
General mean median min max
Subtract w/ Groups 225.04187 ms 224.80342 ms 220.96642 ms 239.05875 ms

After

Library Comparison mean median min max
three-bvh-csg 10.28986 ms 10.29250 ms 10.06304 ms 19.21858 ms
three-bvh-csg w/ rebuild 24.82584 ms 24.74475 ms 24.38200 ms 34.12196 ms
three-csg-ts 2273.83788 ms 2266.95183 ms 2238.63708 ms 2339.18358 ms
three-csg 2294.19239 ms 2295.66725 ms 2261.29329 ms 2334.03054 ms
three-csg w/ rebuild 2300.94571 ms 2301.74887 ms 2277.73783 ms 2320.32492 ms
General mean median min max
Subtract w/ Groups 194.09190 ms 193.48129 ms 191.47796 ms 201.45288 ms