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

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

None yet

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

3 participants