Skip to content

[FEATURE] Speedup nonconvex collision detection (up to x30).#2818

Merged
duburcqa merged 1 commit into
Genesis-Embodied-AI:mainfrom
duburcqa:speed_collision_nonconvex_vs_convex
May 21, 2026
Merged

[FEATURE] Speedup nonconvex collision detection (up to x30).#2818
duburcqa merged 1 commit into
Genesis-Embodied-AI:mainfrom
duburcqa:speed_collision_nonconvex_vs_convex

Conversation

@duburcqa
Copy link
Copy Markdown
Collaborator

No description provided.

@duburcqa duburcqa requested a review from YilingQiao as a code owner May 21, 2026 17:48
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bf8fc89131

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread genesis/engine/solvers/rigid/collider/narrowphase.py Outdated
@duburcqa duburcqa force-pushed the speed_collision_nonconvex_vs_convex branch from bf8fc89 to 2043896 Compare May 21, 2026 20:50
@duburcqa
Copy link
Copy Markdown
Collaborator Author

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2043896af8

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +2658 to +2659
if diag_a_sq > diag_b_sq:
i_ga, i_gb = i_gb, i_ga
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve type order before smooth contact refinement

The AABB-size swap here can undo the canonical type ordering established just above, so a smooth primitive (sphere/ellipsoid/capsule) may move to i_gb when it is larger than a nonconvex mesh. In this kernel we still call func_apply_smooth_refinement later, and the surrounding comment explicitly documents that running refinement on the mesh-as-A orientation sends smooth data through the type_b path with inverted correction. That means large-sphere vs small-mesh contacts can get wrong contact positions after this change, which can destabilize resting contacts and drift.

Useful? React with 👍 / 👎.

@duburcqa duburcqa changed the title [FEATURE] Speedup convex vs nonconvex collision detection (x50). [FEATURE] Speedup convex vs nonconvex collision detection (x30). May 21, 2026
@duburcqa duburcqa changed the title [FEATURE] Speedup convex vs nonconvex collision detection (x30). [FEATURE] Speedup convex vs nonconvex collision detection (up to x30). May 21, 2026
@duburcqa duburcqa merged commit b6f8c82 into Genesis-Embodied-AI:main May 21, 2026
20 checks passed
@duburcqa duburcqa changed the title [FEATURE] Speedup convex vs nonconvex collision detection (up to x30). [FEATURE] Speedup nonconvex collision detection (up to x30). May 21, 2026
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