EulalieCoevoet / AdaptiveMerging

With adaptive merging we reduce computation time in rigid body simulations.
https://eulaliecoevoet.github.io/AdaptiveMerging/
42 stars 11 forks source link

Warm start efficiency #7

Closed paulkry closed 4 years ago

paulkry commented 5 years ago

Not a big issue, but I have been thinking about how the warm start check that blocks and bodies match for a contact in the last time step with one identified in this time step involves building a string and a string compare, as opposed to checking the object IDs.

Another thought is that with the BodyContact objects (can this name be refactored / improved) storing information on the contacts between two rigid bodies, it can be a faster map lookup to check only those for the same pair of contacting bodies... Perhaps a silly optimization given that hashmaps and treemaps are so fast. And there are much bigger fish to fry.

paulkry commented 4 years ago

This was a super old issue... Looks like pretty much all of this got fixed in the 3D version (and perhaps some of it in the 2D version too)!