jrouwe / JoltPhysics

A multi core friendly rigid body physics and collision detection library. Written in C++. Suitable for games and VR applications. Used by Horizon Forbidden West.
MIT License
6k stars 374 forks source link

Allow an external profiler to be installed dynamically #1164

Closed tanner00 closed 1 week ago

tanner00 commented 2 weeks ago

I agree with your point about avoiding the dynamic overhead if it's not necessary, so I ended up adding a check for JPH_SHARED_LIBRARY. This may mean that JPH_SHARED_LIBRARY needs to be tested for in RegisterTypesInternal, but I wasn't sure. Happy to fix anything if necessary :)

CLAassistant commented 2 weeks ago

CLA assistant check
All committers have signed the CLA.

jrouwe commented 1 week ago

Looks good to me, thanks!