Open vhys366lnsh opened 4 years ago
Hey,
Thanks for reporting it.
It's in deed an issue with SIMD that's disabled in Unity. I don't have a magical solution for this right now but I have a couple of leads to improve the speed. Utilizing SIMD/SSE in Unity3D (.NET 2.0).
I will keep you updated on this matter :) .
BoxCast results are all correct, but performance is unbelievable low 400 BoxCast Unity cost 2 ms Bepu cost 6494 ms, and GC Alloc is 53.2 MB
bepuphysics2 source code here GJKDistanceTester.Edge() cost 1753.64 ms, and 3.2MB GC Alloc
This looks like SIMD things. I am not familiar with SIMD so I don't know how to modify these code to improve performance in Unity. You looks pretty cool at these. Can you give me some advice? Thanks in advance!
Here's Bench MonoBehaviour, put it on PhysicsSystem gameobject and click Benchmark, it will start a Benchmark