DrChat / Gmod-vphysics

Replacement vphysics module for the Source engine (originally meant for Garry's Mod)
Other
92 stars 15 forks source link

Update Bullet SDK to latest version #59

Open dyanikoglu opened 4 years ago

dyanikoglu commented 4 years ago

If anyone is interested with updating Bullet source code to latest version from upstream repository, you can find my own fork here: https://github.com/dyanikoglu/bullet3

This update also needs lots of change on vphysics code (especially the multithreaded implementations by @DrChat , they all became obsolote because of new multihreaded classes in Bullet SDK, and removed BulletMultithread module), and I'm not able to provide that part of my work because of NDA rules. So, you need to figure those required changes out yourself..

Thanks to new multithreaded classes of Bullet, I can say Bullet vphysics performs better than Havok Vphysics in any kind of scenario. For example, I'm able to simulate huge amount of ragdolls with nearly no FPS drop, while Havok Vphysics almost crashes the game.

dyanikoglu commented 4 years ago

https://github.com/dyanikoglu/source-sdk-bullet-physics the mentioned repository on the first post

wow0000 commented 4 years ago

Hey, Tried to compile it, however no success, the output is a dll that can't be loaded by the game. Could you provide some pre-compiled output ? Thanks !

Hi-Angel commented 1 year ago

Tried to compile it, however no success, the output is a dll that can't be loaded by the game. Could you provide some pre-compiled output ?

Me neither. Apparently the fork broke the building because build.sh disappeared, so it's not clear how to build it under most systems, except perhaps Windows-based ones. Though even for Windows it looks bad because there's just a .sln/.vcxproj file which requires you to buy a proprietary Visual Studio (not to be confused with VS Code), so yeah, an open source project that makes you pay money to even try to build, sounds like a great new feature the fork added!

I tried briefly to migrate the fork to modern meson.build (which btw supports generating Visual Studio project files, so should've been used in the first place), but quickly gave up due to a lack of motivation. With that said, I think it should be relatively straightforward work (just need time and motivation), because I grepped over a src/ dir for win infix case-insensitive, and there's almost nothing Win-specific.

Note btw that the fork has the "issues" tab hidden, so yeah, I don't think it's even maintained.