Uses the configuration to obtain the simulation device #3636
+159
−119
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 tosim.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
Screenshots
The numbers reported here are the average FPS on PC with RTX A6000 GPU and Intel i9-9820X:
sim.device
: 100484.21244511564Checklist
pre-commit
checks with./isaaclab.sh --format
config/extension.toml
fileCONTRIBUTORS.md
or my name already exists there