Skip to content

[PERF] Increase VBD iterations and narrow stiffness range in deformables demo - #7652

Merged
kellyguo11 merged 2 commits into
isaac-sim:developfrom
mmichelis:perf/newton-vbd-deformables-demo
Sep 9, 2026
Merged

kellyguo11 merged 2 commits into
isaac-sim:developfrom
mmichelis:perf/newton-vbd-deformables-demo

Conversation

@mmichelis

@mmichelis mmichelis commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Description

Deformable objects in the Newton VBD deformables demo passed through the ground plane, and cloth sheets were occasionally launched several metres into the air. Two causes:

  • Collision ran once per 10 ms tick with no continuous collision detection, while objects dropped from up to 3.5 m cross the 18 mm contact detection band within a single tick. The plane was missed during the crossing tick and the penalty force resolved on the next one, ejecting the object.
  • Young's modulus was sampled up to 1e8 Pa, far stiffer than the contact penalty can resist, so the elastic response overwhelmed the ground contact and vertices ended up below the plane.

This sets collision_decimation to 1 so the collision pipeline re-runs on every solver substep, caps the sampled Young's modulus at 1e7 Pa, and raises the VBD iteration count to 20. Only affects --physics newton_vbd; the PhysX paths are unchanged.

Measured over 6 s with two seeds, the stiffness and iteration changes alone still left 5 objects stranded in the air (one cloth at 3.27 m, another at 0.53 m, a volume deformable at 1.43 m). With collision_decimation = 1 every object settles on the plane and worst-case penetration drops from 51 mm to 29 mm.

Fixes nvbugs 6201420

Release backport

  • Backport this pull request to the active release branch after it merges into develop

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • My changes generate no new warnings
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

…les demo

Deformable objects in the Newton VBD deformables demo passed through the
ground plane. Objects are dropped from up to 3.5 m and reach the ground at
several m/s, while the solver ran only 5 iterations and Young's modulus was
sampled up to 1e8 Pa, far stiffer than the contact penalty can resist. The
elastic response then overwhelmed the ground contact and vertices ended up
below the plane.

Cap the sampled Young's modulus at 1e7 Pa and raise the VBD iteration count
to 20.
@mmichelis
mmichelis requested a review from a team September 8, 2026 20:52
@github-actions github-actions Bot added the isaac-lab Related to Isaac Lab team label Sep 8, 2026

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Isaac Lab Review Bot

The Newton VBD iteration increase is correctly backend-gated, but the reduced Young’s modulus upper bound is applied to the shared material-sampling path and therefore also changes PhysX behavior, contrary to the PR’s stated scope.

  • Design and architecture: Backend-specific solver tuning remains isolated under the newton_vbd condition, but the stiffness adjustment breaks that separation by retuning all backends. The narrower bound should be selected conditionally for Newton VBD while preserving the existing PhysX range.
  • API: No public symbols, CLI arguments, or configuration contracts change. However, the demo’s observable PhysX material distribution changes from the prior 5e5–1e8 Pa range to 5e5–1e7 Pa despite the stated compatibility intent.
  • Implementation: Raising solver iterations from 5 to 20 affects only Newton VBD as intended. At line 198, however, the shared branch samples the reduced stiffness range for PhysX as well as Newton VBD non-cloth objects; retain the original upper bound for PhysX and apply 1e7 only to Newton VBD.

Minor fixes needed. Posted 1 actionable finding inline.

Automated review; human maintainers own approval decisions.

obj_cfg.physics_material.tri_ka = random.uniform(5e3, 5e4)
else:
youngs_modulus = random.uniform(5e5, 1e8)
youngs_modulus = random.uniform(5e5, 1e7)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Warning · Implementation — Stiffness cap also changes PhysX demo behavior

Line 198 sits in the else branch that runs for every backend (the if above matches only Newton VBD cloth), so the sampled Young's modulus is now capped at 1e7 for the PhysX paths too, not just newton_vbd as intended. Gate the narrowed upper bound on args_cli.physics == "newton_vbd" and keep the original 5e5-1e8 range for PhysX.

@greptile-apps

greptile-apps Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

The PR should not merge until the Young's modulus cap is restricted to Newton VBD as intended.

Findings

  1. P1 PhysX stiffness also changes ▶

Summary

  • Raises Newton VBD solver iterations from 5 to 20.
  • Lowers the randomized Young's modulus ceiling from 1e8 to 1e7.
  • The iteration change is backend-scoped, but the modulus change currently also affects both PhysX backends.

obj_cfg.physics_material.tri_ka = random.uniform(5e3, 5e4)
else:
youngs_modulus = random.uniform(5e5, 1e8)
youngs_modulus = random.uniform(5e5, 1e7)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 PhysX stiffness also changes

When the demo runs with --physics isaacsim_physx or --physics ovphysx, this shared branch samples the new range and assigns it to physics_material.youngs_modulus. As a result, the PhysX stiffness ceiling also drops from 1e8 to 1e7, even though this change is intended to affect only Newton VBD. Restrict the new range to newton_vbd so the PhysX paths remain unchanged.

Collision ran once per 10 ms tick with no continuous collision detection,
while objects crossed the 18 mm contact detection band in a single tick. The
plane was missed during the crossing tick and the penalty force resolved on
the next one, ejecting cloth sheets several metres into the air where they
stayed for the rest of the reset cycle.

Set collision_decimation to 1 so the collision pipeline re-runs on every
solver substep.
@kellyguo11

Copy link
Copy Markdown
Contributor

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 8, 2026
@kellyguo11
kellyguo11 merged commit 590ec10 into isaac-sim:develop Sep 9, 2026
52 of 53 checks passed
@isaaclab-bot

isaaclab-bot Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Backported to release/3.0.0 as ea6662b.

isaaclab-bot Bot pushed a commit that referenced this pull request Sep 9, 2026
…les demo (#7652)

# Description

Deformable objects in the Newton VBD deformables demo passed through the
ground plane, and cloth sheets were occasionally launched several metres
into the air. Two causes:

- Collision ran once per 10 ms tick with no continuous collision
detection, while objects dropped from up to 3.5 m cross the 18 mm
contact detection band within a single tick. The plane was missed during
the crossing tick and the penalty force resolved on the next one,
ejecting the object.
- Young's modulus was sampled up to 1e8 Pa, far stiffer than the contact
penalty can resist, so the elastic response overwhelmed the ground
contact and vertices ended up below the plane.

This sets `collision_decimation` to 1 so the collision pipeline re-runs
on every solver substep, caps the sampled Young's modulus at 1e7 Pa, and
raises the VBD iteration count to 20. Only affects `--physics
newton_vbd`; the PhysX paths are unchanged.

Measured over 6 s with two seeds, the stiffness and iteration changes
alone still left 5 objects stranded in the air (one cloth at 3.27 m,
another at 0.53 m, a volume deformable at 1.43 m). With
`collision_decimation = 1` every object settles on the plane and
worst-case penetration drops from 51 mm to 29 mm.

Fixes nvbugs 6201420

## Release backport

- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

## Type of change

- Bug fix (non-breaking change which fixes an issue)

## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] My changes generate no new warnings
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

(cherry picked from commit 590ec10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants