by aras_p · 8y ago · 0 comments
That said, not that many games use the GPU-accelerated parts of it; for a lot of gameplay physics CPU code path of PhysX works just fine and does not have special hardware requirements.
That's not true - UE4 games can be (and are) built against other physics engines.
The visual-only portion of GPU physics is not really that compelling which is why there isn't huge uptake. There would need to be a revolution in how games work on a fundamental level where basic game logic is calculated on the GPU to make true GPU physics happen. We might see that eventually but not anytime soon.
Raycasting for game logic is cpu based as you mention because the game logic itself is on the cpu. Yet solvers and the true heavy lifting does work well on gpu.
Except, and this is the true reason we see little gpu physics, no one has spare gpu room. Thus cpu side physics wins for most games. Outside specific physics focused games giving up graphics for faster physics is not a profitable trade.
I say this as a gamedev myself who has several times made this exact decision.
Many games do have spare GPU room to spare, but since there are no good GPU-accelerated solutions for physics they don't have much of a choice.
https://docs.nvidia.com/gameworks/content/gameworkslibrary/p...
Says: The GPU rigid body feature provides GPU-accelerated implementations of:
- Broad Phase
- Contact generation
- Shape and body management
- Constraint solver