Skip to content

[BUG FIX] Revert fix safe GJK fallback causing dramatic performance drop.#2716

Merged
duburcqa merged 1 commit intoGenesis-Embodied-AI:mainfrom
duburcqa:revert_fix_safe_gjk
Apr 16, 2026
Merged

[BUG FIX] Revert fix safe GJK fallback causing dramatic performance drop.#2716
duburcqa merged 1 commit intoGenesis-Embodied-AI:mainfrom
duburcqa:revert_fix_safe_gjk

Conversation

@duburcqa
Copy link
Copy Markdown
Collaborator

No description provided.

@duburcqa duburcqa requested a review from YilingQiao as a code owner April 16, 2026 08:18
Copy link
Copy Markdown

@claude claude bot left a comment

Choose a reason for hiding this comment

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@duburcqa duburcqa changed the title [BUG FIX] Revert fix safe GJK fallback due to dramatic performance drop. [BUG FIX] Revert fix safe GJK fallback causing dramatic performance drop. Apr 16, 2026
@duburcqa duburcqa merged commit 5bf9b3d into Genesis-Embodied-AI:main Apr 16, 2026
20 checks passed
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: 954a223015

ℹ️ 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 368 to +370
count = 1
dot_max = dot
# FIXME: This fix destroys performance (-25% total runtime FPS on benchmarks). Disabling for now...
# dot_max = dot
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 Restore dot_max update for mesh support counting

In _func_count_supports_mesh, removing dot_max = dot means dot_max stays at -1e20, so the if dot > dot_max branch is taken on every loop iteration and count is repeatedly reset to 1. As a result, mesh support counting can never return multiple valid supports, which disables the multi-support perturbation path used by GJK (see gjk.py around if num_supports > 1) and can reintroduce degenerate-simplex failures for mesh contacts.

Useful? React with 👍 / 👎.

@duburcqa duburcqa deleted the revert_fix_safe_gjk branch April 16, 2026 14:43
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