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

Some questions about the project #59

Open
maxilevi opened this issue Aug 11, 2019 · 1 comment
Open

Some questions about the project #59

maxilevi opened this issue Aug 11, 2019 · 1 comment

Comments

@maxilevi
Copy link
Contributor

I have a few questions:

  • I recently integrated the wrapper into my game and everything works fine except I sometimes experience pretty random native code crashes, e.g. Native code crash at 'HACD_HACD_GetPartition' #58

  • Which one do you think is more stable for production BulletSharp or BulletSharpPInvoke?

  • Any suggestions/best practices on the best way to integrate this library while avoiding potential crashes?

Thank you for making this great piece of software!

@AndresTraks
Copy link
Owner

I'll answer about the crash in #58.

There haven't been major updates to the core part of the Bullet library in a few years, so in terms of the API, both BulletSharp and BulletSharpPInvoke are stable. For new games, I would probably recommend PInvoke, because it supports more platforms besides Windows.

The only reason I still call PInvoke "experimental" (and keep it at version 0.x) is that I'm currently rewriting the Matrix class to match Bullet's memory layout and API. This will be a breaking API change. After that, I'd like to phase out C++/CLI, because the only benefit it provides is a very slight performance improvement.

I don't really keep close contact with game developers, nor do I work on games myself anymore, so when it comes to random crashes, all I have to go by are the issue reports on GitHub. BulletSharp demos should cover most of the use cases and I know that those work, so I believe that crashes are rare. That said, it can be difficult to diagnose issues because of the complexity from all of the layers (C# -> libbulletc -> Bullet).

Thanks for the feedback!

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

2 participants