Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
PhysX 3.4 support #2020
Attempt number 2.
PhysX 3.4 support, tested on windows 10, linux mint 18.1 and macOS sierra. Added a new console variable called $Physics::gpuAccelerationAllowed (disabled by default). When enabled physx will attempt to create a cuda context and if successful will enable Gpu Rigid Body(GRB) support. If no supported nvidia hardware is found, a simple warning will be put in the log and it will than resort back to using the cpu dispatcher for everything.
GRB support is only available on windows and linux.
I tested this PR with Windows 8.1, PhysX sdk 3.4.1 and vs2015 x64. The physX build did not create the PhysX3Gpu .lib files so the game would not build without removing them from linker input. The corresponding .dll files are present in the ./bin directory and did get copied by the install projects. I don't see source for that library in the physx 3.4 repo. The game compiled and ran with them removed. This commit updates the cmake for windows. OTHGMars@55bba16