Skip to content

Conversation

Mayankm96
Copy link
Contributor

@Mayankm96 Mayankm96 commented Oct 6, 2025

Description

This MR fixes the slow-down observed in recent IsaacLab updates. Previously, the simulation device was read through the configuration; later, this was changed to read the device through the simulation manager.

On profiling, I observed that the simulation manager function took 0.01 s per call. This is quite a bit of overhead, considering that env.device refers to sim.device and gets called at multiple locations in the environment.

This MR reverts back to the previous solution for obtaining the device.

Fixes #3554

Type of change

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

Screenshots

./isaaclab.sh -p scripts/benchmarks/benchmark_non_rl.py --task Isaac-Velocity-Flat-Anymal-C-v0 --headless --seed 0 --num_frames 2000

The numbers reported here are the average FPS on PC with RTX A6000 GPU and Intel i9-9820X:

  • Before: 94784.43553363248
  • Overriding sim.device: 100484.21244511564

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@Mayankm96 Mayankm96 requested a review from kellyguo11 as a code owner October 6, 2025 18:51
@github-actions github-actions bot added bug Something isn't working isaac-lab Related to Isaac Lab team labels Oct 6, 2025
@Mayankm96 Mayankm96 requested a review from jtigue-bdai October 6, 2025 18:53
Copy link
Collaborator

@jtigue-bdai jtigue-bdai left a comment

Choose a reason for hiding this comment

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

Interesting, good find.

@pascal-roth
Copy link
Collaborator

Great fix, thanks for catching that

@Mayankm96 Mayankm96 moved this to In review in Isaac Lab Oct 10, 2025
@Mayankm96 Mayankm96 merged commit 03cee3c into isaac-sim:main Oct 14, 2025
5 of 7 checks passed
@github-project-automation github-project-automation bot moved this from In review to Done in Isaac Lab Oct 14, 2025
@Mayankm96 Mayankm96 deleted the fix/sim-device branch October 14, 2025 07:27
kellyguo11 pushed a commit that referenced this pull request Oct 15, 2025
This MR fixes the slow-down observed in recent IsaacLab updates.
Previously, the simulation device was read through the configuration;
later, this was changed to read the device through the simulation
manager.

On profiling, I observed that the simulation manager function took 0.01
s per call. This is quite a bit of overhead, considering that
`env.device` refers to `sim.device` and gets called at multiple
locations in the environment.

This MR reverts back to the previous solution for obtaining the device.

Fixes #3554

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

```
./isaaclab.sh -p scripts/benchmarks/benchmark_non_rl.py --task Isaac-Velocity-Flat-Anymal-C-v0 --headless --seed 0 --num_frames 2000
```

The numbers reported here are the average FPS on PC with RTX A6000 GPU
and Intel i9-9820X:

* **Before**: 94784.43553363248
* **Overriding `sim.device`**: 100484.21244511564

- [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] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working isaac-lab Related to Isaac Lab team

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Bug Report] Significant performance drop rebased to IsaacLab v2.2.1 for IsaacSim 5.0.0

4 participants