← Back to context

Comment by animal531

2 days ago

My favourite is probably Bepuphysics due to its C# nature: https://www.youtube.com/watch?v=tjtwSq3u6Dg

Unfortunately it was created before Unity could use vectorization and other C# engines were just starting out as well.

The source, a great resource for learning C# SIMD, even though its a few years old by now: https://github.com/bepu/bepuphysics2

> Unfortunately it was created before Unity could use vectorization

It still can't unless you use Unity's Burst compiler. You're not going to be able to use bepuphysics2 in Unity because it was written for standard C#.

  • Unity has begun to roll out CoreCLR in beta now which is a move from Mono to modern .NET 10.

    The official release and LTS versions are still some months out though.

    • That's true but I haven't seen word from them on what is changing with IL2CPP. They've already confirmed that there are no plans to use CoreCLR's superior GC in IL2CPP so they could also just not support the intrinsics so it falls back to scalar operation. IL2CPP support is an important detail because many of the platforms Unity targets only work with IL2CPP and Unity recommends IL2CPP for release builds on the rest.