Repository navigation
Replace map transforms with pre-owned and reused buffer - #7233
Conversation
Greptile SummaryReplaces per-frame mapped OVRTX transform writes with caller-owned Warp buffers and asynchronous GPU-stream-aware writes.
Confidence Score: 5/5The PR appears safe to merge, with no concrete blocking or non-blocking defects identified in the changed transform-buffer paths. The persistent object buffer is initialized and released with the legacy renderer lifecycle, while both transform write paths pass the producing Warp stream and rely on the documented blocking OVRTX write contract to preserve buffer validity. Important Files Changed
Sequence DiagramsequenceDiagram
participant Newton as Newton state
participant Warp as Warp CUDA stream
participant Buffer as Caller-owned transform buffer
participant OVRTX as OVRTX binding
Newton->>Warp: Provide body transforms
Warp->>Buffer: Launch transform kernel
Buffer->>OVRTX: write(ASYNC, cuda_stream)
OVRTX->>OVRTX: Wait on producer stream and consume buffer
Reviews (1): Last reviewed commit: "Replace map transforms with pre-owned an..." | Re-trigger Greptile |
There was a problem hiding this comment.
Isaac Lab Review Bot
Reviewed the legacy OVRTX transform update change from mapped attributes to caller-owned GPU buffers passed through binding.write with DataAccess.ASYNC and the active Warp CUDA stream. The object-buffer lifecycle, camera write path, regression tests, and package changelog are consistent with the intended optimization.
- Design and architecture: The persistent object transform buffer remains internal to the legacy renderer path: it is initialized with legacy fields, allocated alongside the object binding, used for transform updates, and released during legacy shutdown. This follows the existing asynchronous OVRTX write pattern used by geometry buffers.
- API: No public API is added, removed, or renamed. The changed fields and methods are private, while the object transform buffer retains the bound object count and
wp.mat44drepresentation used by the prior mapped-write path. The touched package includes a changelog fragment. - Implementation: The obsolete mapping import and both transform mapping call sites are removed together. Object writes reuse a persistent buffer, camera writes pass the generated buffer directly, and both provide the producing Warp stream to OVRTX. Focused tests verify buffer identity, asynchronous access mode, CUDA stream forwarding, and object-buffer cleanup. The remaining camera allocation is a performance tradeoff rather than a demonstrated correctness problem.
No blocking issues. No inline issue met the actionable-evidence threshold; the assessment above records the review feedback.
Automated review; human maintainers own approval decisions.
6890fc6 to
c2658d2
Compare
This reverts commit 0667c87.
## Description Backports five merged `develop` PRs not already represented on `release/3.0.0` or covered by #7300: | Source PR | Source commit | Backport commit | Scope | | --- | --- | --- | --- | | #7235 | `4fa20fc8a5f` | `8110c816d0a` | Report distinct exit codes for failed, crashed, timed-out, and startup-hung test runs. | | #6597 | `2ae0878a266` | `68b21a60158` | Correct the stale wheel-builder dependency-pin reference. | | #7320 | `7ed3ad45546` | `1a775d46fcf` | Add success-driven ADR guidance and evaluation coverage to the domain-randomization skill. | | #7319 | `2c07bbb43a9` | `4249489a089` | Vectorize clone-plan environment-ID queries. | | #7316 | `a00278f0fde` | `8af682bfcb9` | Extend Core Lift and Reorient episodes and pose-command resampling intervals. | Each merged source commit was cherry-picked with `-x`. All five applied without conflicts and have stable patch IDs identical to their source commits. #7233 is intentionally excluded because its existing backport is #7300. ## Type of change - Bug fix - Performance improvement - Task configuration update - Developer tooling improvement - Documentation update ## Validation - `uv run --frozen --extra test python -m pytest -q source/isaaclab/test/cloner/test_clone_plan_algebra.py` — 85 passed. - Validated the six representative `resolve_exit_code` outcomes, including mixed-failure precedence. - `uv run --no-project python tools/skills/cli.py check` — 21 skills validated. - `uv run --frozen --extra test python -m pytest --noconftest -q source/isaaclab_tasks/test/core/test_lift_env_cfg.py` — 3 passed. - Programmatic Lift/Reorient config assertions confirmed the 4–6 second resampling interval and 12-second episode length. - Ruff, Ruff-format, and RST hooks passed for the #7316 paths. - The original four-PR branch passed `ISAACLAB_CHANGELOG_BASE_REF=release/3.0.0 uv run --frozen isaaclab -f`; #7316's source commit also passed its full formatting and changelog validation. - `git diff --check kelly/kellyg/backport-remaining-develop-prs-3.0.0...HEAD` — passed for the added #7316 commit. - Stable patch IDs match all five merged source commits; #7316 also has exact mode/blob parity on both affected paths. ## Screenshots Not applicable. ## Checklist - [x] I have read and understood the contribution guidelines. - [x] I have run the repository formatting or focused pre-commit checks appropriate to each source PR. - [x] Documentation and skill guidance from the source PRs are included unchanged. - [x] My changes generate no new warnings. - [x] Existing and backported tests cover the changed behavior. - [x] Touched release-managed source packages carry their source changelog fragments. - [x] Source authorship and `-x` provenance are preserved. --------- Co-authored-by: myurasov-nv <[email protected]> Co-authored-by: AntoineRichard <[email protected]> Co-authored-by: ooctipus <[email protected]> Co-authored-by: camevor <[email protected]>
…used buffer (#7233) (#7566) # Description Backport of #7233 (*Replace map transforms with pre-owned and reused buffer*) to `release/3.0.0`. This supersedes #7300, which was the original cherry-pick by @pbarejko. That PR was approved on 2026-08-24 but has been unmergeable (`mergeable=false`, `dirty`) ever since, so the fix never reached the release branch. Authorship of the commit is preserved as @pbarejko. ## Why it conflicted `ovrtx_renderer.py` diverged structurally between `develop` and `release/3.0.0`. The backport of #7347 (landed as #7353) was not a line-for-line cherry-pick — on `develop` #7347 changed 11 lines of that file, while the release-side version changed 1348 (240+/1108−) and restructured code that now only exists in that shape on the release branch: - `_close_legacy` was rewritten from explicit per-binding unbinds into a `for attr, name in (...)` loop - `except Exception as e` was renamed to `as exc` - the close dispatch was restructured The three-week-old cherry-pick was written against the pre-#7353 shape, hence the conflicts. ## Conflict resolution - The four renderer conflicts covering the buffer-write change itself take the #7233 side. - `_close_legacy` keeps **the release branch's** loop form and adds only #7233's semantic contribution (`self._object_transform_buffer = None`). Taking `develop`'s shape here would have silently reverted #7353. - The test-file conflict was an add/add at the same line; all three tests are kept. - The follow-up `Reformat` commit was a single blank line already covered by the resolution, so it drops out as a no-op. ## One deliberate change from the original PR #7233 predates #7169, so it wrote `cuda_stream=wp.get_stream(self._device).cuda_stream`. `release/3.0.0` has since taken #7169 and standardized on `self._warp_device.stream.cuda_stream` — that caching *is* #7169's fix. Applying the original patch verbatim would have reintroduced a per-call device lookup into the per-frame transform path, partially undoing a fix already on the branch. Both new call sites and the two new tests are aligned to the release idiom instead. This is the one substantive delta from what was approved on #7300 and is the part most worth a reviewer's attention. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Release backport This PR targets `release/3.0.0` directly; the change is already on `develop` via #7233. ## Testing - `source/isaaclab_ov/test/test_ovrtx_deformable_bindings.py` — 19 passed - `source/isaaclab_ov/test/test_ovrtx_renderer_contract.py` — 37 passed - Both new tests (`test_update_transforms_writes_caller_owned_buffer`, `test_update_camera_writes_without_mapping`) were confirmed to **fail** against the unpatched release renderer and pass with the change. ## 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` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have added a changelog fragment under `source/<pkg>/changelog.d/` for every touched package - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there Co-authored-by: Piotr Barejko <[email protected]>
Description
Perf optimization - replace map transforms with pre-owned and reused buffer
Fixes # (issue)
Type of change
Screenshots
Please attach before and after screenshots of the change if applicable.
Checklist
pre-commitchecks with./isaaclab.sh --formatsource/<pkg>/changelog.d/for every touched package (do not editCHANGELOG.rstor bumpextension.toml— CI handles that)CONTRIBUTORS.mdor my name already exists there