Physx GPU Acceleration

Does the stock UE Engine support gpu accleration of physics?

Or do you have to use the nvidia UE4 Physx source on github?

(e.g. Would like to use destructibles, want to have game run accelerated if machine supports, or fallback to cpu if it does not)

Thanks in advance for any feedback

Their physics runs on the CPU mostly. If you want to use Physx you have to use the github source.

They talk about that on this vid (at around the 3:03 mark).

UE4 does not use GPU acceleration for PhysX, not sure if Nvidia has a branch for UE4 that does.

Thanks for the quick reply - was hoping it would automatically leverage gpu acceleration if available and fallback otherwise…

The reason it’s not there is so that it supports AMD and Nvidia GPU’s equally

This doesn’t really make sense… You’re essentially saying Nvidia users shouldn’t be allowed to use their GPUs to the fullest extent just for AMDs sake.

Epic doesn’t want features that require something that’s only on one GPU. For example, if you were to make a game that uses physics extensively and would only work well with GPU acceleration.

Not really, the reason why is because the engine is multiplatform and they don’t want duplicated code in codebase;
CryEngine for example usually will use what a particular platform offers, but then rewrite the code in some other module to support other platforms, making “duplicated pieces” of engine code here and there… Epic just won’t do that.

Just to clarify, even nvidia’s gpu enabled UE only supports “cosmetic” physics on gpu - like fluid simulations, flex, hair, wave, etc…

Core physics requires too much integration with cpu game engine to be viable.

The link is:
https://github.com/NvPhysX/UnrealEngine

Personally, I dont think AMD support has anything to do with it not being supported.

For example, Epic’s RoboRecall only works on Occulus and not Vive.