Skip to content

Optimize broadphase AABB and pair management#589

Merged
erincatto merged 2 commits intomasterfrom
erincatto/optimize_pairs
Mar 8, 2020
Merged

Optimize broadphase AABB and pair management#589
erincatto merged 2 commits intomasterfrom
erincatto/optimize_pairs

Conversation

@erincatto
Copy link
Owner

  • Enlarged AABBs can shrink if they get too big
  • Use AABB centers instead of transform positions to track displacement
  • Removed std::sort from pair update by tracking movement in proxies
  • Broadphase cost reduced from 0.52ms to 0.35ms in tumbler benchmark

This was referenced Mar 2, 2020
- keep track of moves to avoid duplicates (eliminate std::sort)
- use AABB centers to predict displacement
- shrink overly large AABBs
- improve apply_force test
@erincatto erincatto force-pushed the erincatto/optimize_pairs branch from 7eadf7a to c3f709e Compare March 8, 2020 18:24
@erincatto erincatto merged commit 0a2e35a into master Mar 8, 2020
@erincatto erincatto deleted the erincatto/optimize_pairs branch March 8, 2020 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant