Skip to content

Improving simulation speed in Python #2965

Discussion options

You must be logged in to vote

Hello @Hellscythe789

From what I can read in your scene, you tried using multithreading by:

  • using parallelODESolving and parallelCollisionDetectionAndFreeMotion in the FreeMotionAnimationLoop.
  • using ParallelBruteForceBroadPhase and ParallelBVHNarrowPhase to speed up the collision detection.

I warn you that you maybe created a multithreading bottleneck here. ParallelBruteForceBroadPhase is interesting if you have many objects, otherwise, use BruteForceBroadPhase. ParallelBVHNarrowPhase is interesting if you have many elements in your collision models. However, due to parallelCollisionDetectionAndFreeMotion and parallelODESolving, you are already doing jobs on all your cores. So ParallelB…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@hugtalbot
Comment options

@tsreyas
Comment options

Answer selected by tsreyas
Comment options

You must be logged in to vote
1 reply
@alxbilger
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants