Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BEPUPhysics vs Unity's new Havok in terms of performance #2

Open
PrakashNep opened this issue Jan 28, 2020 · 3 comments
Open

BEPUPhysics vs Unity's new Havok in terms of performance #2

PrakashNep opened this issue Jan 28, 2020 · 3 comments

Comments

@PrakashNep
Copy link

PrakashNep commented Jan 28, 2020

Hello :) I'm really interested in BEPUPhysics and this project :)
What comments do you have in regards to BEPUPhysics and the DOTS/ HAVOK Physics that Unity is working on and rn available to use?
I'm starting to work on a new game, and seeing the performance of Bepu really got me hyped when I saw its video yesterday.
Please let me know your thoughts in comparision to Bepu vs the new physics engine Unity is currently developing.. I really have to choose one for those massive physics requirements for my Android game :)
Kind regards.

@AntoineCharton
Copy link
Owner

AntoineCharton commented Jan 28, 2020

I haven't tested Havok so I can only tell you for Bepu.

Bepu uses System.Numerics.Vectors which is a cool .NET feature that allows writing hardware accelerated code in C#.
Right now this class is not hardware accelerated in Unity, so Bepu runs a lot slower than what it is supposed to.

This repo is kind of experimental for now. I would not recommend using it in Unity for an important project.

Here are some threads for the Hardware acceleration stuff.
https://forum.unity.com/threads/feature-request-system-numerics-simd-acceleration.724775/
https://forum.unity.com/threads/how-about-performance-by-default-for-editor.603997/page-2#post-5227220
https://forum.bepuentertainment.com/viewtopic.php?f=9&t=2528&start=15

@Nolram12345
Copy link

Wouldn't it be possible to use Burst for this ?

@AntoineCharton
Copy link
Owner

AntoineCharton commented Dec 21, 2020

It would be possible but it would involve rewriting every part that involves SIMD inside Bepu. This repo is about taking Bepu code and making a wrapper for Unity not rewriting the physic engine itself. I would say the best ending for this would be to have a CoreCLR support for unity on which Bepu has really good performances and wouldn't require anything to change in here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants