Repository navigation
Conversation
Restore ovrtx_replicate as a deprecated alias and turn the async_rendering log message into a DeprecationWarning. Drop the camera and foveated-camera code that still treated async_rendering as pipelined, and remove the test setup for the ISAAC_LAB_OVRTX_USE_OVSTAGE variable that is no longer read.
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Scope and over-engineering (2), Compatibility and deprecation (3), Implementation (2), Style consistency (4), Test quality (3). Other reviewed categories look good.
- PR description: Qualify “unchanged particle regression” as relative to the loading fix, not the full diff, and add diagnostic revisions and benchmark commands; the Linux comparison supplies hardware, backends, environment counts, warmup, and metrics.
- Design and architecture: Architecture looks good.
- Scope and over-engineering: Minimal implementation: Extend existing clone routing, renderer, USD-product, material, and appearance owners; no source modules were added, and no new layers require retention; collapse singleton case generators and per-pointer visibility buffers, preserving population, publication, sealing, and capture. Suggested PR breakdown: (1) particle loading in renderer/USD owners, validated by particle depth and rigid capture; (2) scene migration with functional compatibility bridges, validated by runtime contracts; (3) CI and golden cleanup, validated by workflow and inventory tests.
- API: API changes look good.
- Compatibility and deprecation: Breaking changes: scene selection, OVRTXBackendCfg.use_ovstage, and asynchronous images with capture metadata lose their contracts immediately; retain old behavior through targeted warnings, migration guidance, removal schedules, and transition coverage.
- Implementation: Preparation-time particle detection excludes callback-authored coffee grains, leaving their products on first-capture-only loading waits; update the loading requirement when runtime particles are registered.
- Style consistency: The async_rendering configuration warning uses normally hidden DeprecationWarning instead of the prescribed FutureWarning; emit it at the caller-facing boundary and update documentation and assertions.
- Test quality: The clone-ordering fake supplies the very ordering its assertion claims to verify, so missing cloning remains undetected; record the actual OvStage clone operation.
Needs rework. Posted 14 inline findings.
Automated review; human maintainers own approval decisions.
| if share_ovstage: | ||
| # Keep the physics route so the existing planner builds native clone recipes. | ||
| routing.setdefault(OvstageReplicateContext, set()).update(routing.get(OvPhysxReplicateContext, ())) | ||
| routing.setdefault(OvstageReplicateContext, set()).update(routing.pop(OvrtxReplicateContext, ())) |
There was a problem hiding this comment.
🔴 Critical · Compatibility — Preserve the scene selector
ISAAC_LAB_OVRTX_USE_OVSTAGE=0 previously selected the native scene; unconditional routing silently changes that documented behavior. Keep the old selection functional with targeted migration warnings through a deprecation cycle.
There was a problem hiding this comment.
Not kept functional on purpose. The contributing guide says not to add deprecated-selector translation when ownership changes, and the OVRTX scene API behind the old selector is deprecated since OVRTX 0.4. Setting the variable now emits a UserWarning saying it is ignored (c85d026); the breaking changelog entry and migration notes say to remove it.
| backends = [backend for backend in self._sim.get_backends(OVRTXBackendCfg) if not backend.cfg.use_ovstage] | ||
| _prepare_scene_copies(plan, asset_prototype_ids, backends) | ||
| renderer.scene = scene | ||
| if renderer.cfg.async_rendering: |
There was a problem hiding this comment.
🔴 Critical · Compatibility — Preserve asynchronous capture behavior
async_rendering=True now returns current rather than delayed images and no longer supplies their matching capture metadata. A warning is not a bridge; retain that behavior through deprecation.
There was a problem hiding this comment.
Not kept on purpose. The asynchronous pipeline lived in the removed OVRTX scene path. The Linux comparison in the description puts the synchronous OvStage step within about 4% of the legacy step. async_rendering=True now emits a visible FutureWarning (c85d026), and the breaking changelog entry names the removed "capture" metadata.
| self._setup_geometry_bindings() | ||
| # Particle deformation can rebuild streamed geometry after the initial capture. | ||
| # Check the authored prototypes too: native clones need not exist on the USD stage. | ||
| self._has_particle_geometry = bool(self._geometry_paths) and any( |
There was a problem hiding this comment.
🔴 Critical · Implementation — Include runtime-authored particles
Coffee rendering adds deforming USD Points after stage preparation, outside _geometry_paths. Its camera products retain first-request-only loading waits and can capture stale grains. Update the wait requirement when runtime particles are registered.
There was a problem hiding this comment.
Fixed in fc2b2a9. A registered geometry callback now switches every camera product of the engine to wait for loading on every capture, including products created earlier. The new GPU test test_ovrtx_callback_particles_render_their_current_positions fails without the fix (no grains in the first two captures) and passes with it.
| (stage, case) | ||
| for case in _KITLESS_CASES | ||
| for stage in (("legacy", "ovstage") if case.renderer == "ovrtx" else ("legacy",)) | ||
| for stage in (("ovstage",) if case.renderer == "ovrtx" else ("legacy",)) |
There was a problem hiding this comment.
🟡 Warning · Implementation — Add the testing-package changelog fragment
The _isaaclab_testing package changes without the required per-package changelog fragment. Add a .skip fragment if the test-only inventory changes need no release note.
There was a problem hiding this comment.
Added source/_isaaclab_testing/changelog.d/ovstage-only.skip in c85d026.
| + GAUSSIAN_KITLESS_CASES | ||
| + ( | ||
| *((stage, RenderCase("newton", "ovrtx", _CABLE_AOVS, scene="franka_cable")) for stage in ("legacy", "ovstage")), | ||
| *((stage, RenderCase("newton", "ovrtx", _CABLE_AOVS, scene="franka_cable")) for stage in ("ovstage",)), |
There was a problem hiding this comment.
🟡 Warning · Scope Complexity — Flatten the retired stage axis
OVRTX case builders still expand singleton stage tuples and starred generators. Construct fixed ("ovstage", case) pairs directly, including Gaussian, cable, and material cases.
There was a problem hiding this comment.
Done in 50fde68: the OVRTX cases are fixed ("ovstage", case) pairs, including the Gaussian, cable, and material cases. Test IDs are unchanged.
| # FIXME: revert once OVRTX stops warning on every cloned attribute without data. | ||
| log_level: str = "error" | ||
| """Native renderer log level.""" | ||
| use_ovstage: bool = MISSING |
There was a problem hiding this comment.
🟡 Warning · Compatibility — Retain the backend configuration field
Removing OVRTXBackendCfg.use_ovstage immediately rejects existing constructor keywords and serialized configurations. Keep the field and its selection behavior during a warned deprecation transition.
There was a problem hiding this comment.
Kept as a deprecated field with no effect in c85d026; use_ovstage=False emits a DeprecationWarning. The old selection behavior is not kept, as in the scene-selector thread.
| cuda_event=self._event.cuda_event, | ||
| cuda_stream=wp.get_stream(self._device).cuda_stream or 1, | ||
| ) | ||
| operation = renderer.scene.stage.write_attribute( |
There was a problem hiding this comment.
🟡 Warning · Style Consistency — Correct the material scene owner
Material writes now target OvStage, while the module description still says “OVRTX-owned scenes.” Name the actual owner.
| write_array_calls: list[tuple[list[str], str, list[list[str]]]] = [] | ||
|
|
||
| renderer.backend.renderer.open_usd_from_string = lambda _usd_string: call_order.append("open") | ||
| renderer.scene.populate = lambda _usd_string: call_order.extend(("open", "clone")) |
There was a problem hiding this comment.
🟡 Warning · Test Quality — Record actual clone ordering
The populate fake appends both open and clone, so the ordering assertion passes even if population never clones. Record the actual OvStage clone operation instead.
There was a problem hiding this comment.
Fixed in 50fde68. The fake now records populate, which includes cloning, so the test checks that partitions and camera rewrites follow population. Clone order itself is covered by test_native_replication_applies_compositions_then_positions.
| other._setup_xform_bindings(stage) | ||
| other.update_transforms() | ||
| assert native.bind_attribute.return_value.write.call_args.args[0] is matrices | ||
| assert other._transform_buffer.matrices is matrices |
There was a problem hiding this comment.
🟡 Warning · Test Quality — Check the second published transform
The second renderer checks private _transform_buffer identity without verifying its write. Record its OvStage write and assert that the published tensor is the shared buffer.
There was a problem hiding this comment.
Fixed in 50fde68: the test records the second renderer's write and checks that the published tensor is the shared buffer.
|
|
||
|
|
||
| @pytest.mark.parametrize("stage_mode", ["legacy", "typed_handles"]) | ||
| @pytest.mark.parametrize("stage_mode", ["typed_handles"]) |
There was a problem hiding this comment.
🟡 Warning · Test Quality — Remove the unused stage parameter
stage_mode has one value and is never read. Remove its parametrization and argument; they no longer select a distinct path.
[High impact] The PR changes the scene path used by OVRTX across rendering and camera workflows. Fix the loading-wait policy for callback-published particles before merging. Findings
SummaryMoves OVRTX scene work to OvStage and removes the legacy scene bindings and asynchronous capture queues.
Acknowledged by No tests were run during this review. Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[Physics state] --> B[SDP writes]
C[Geometry callbacks] --> D[OvStage]
B --> D
D --> E[Seal writes]
E --> F[Synchronous OVRTX capture]
F --> G[Camera outputs]
G --> H[Processors receive current mask]
Reviews (1) · Last reviewed commit: "Wait for particle geometry streaming bef..." · Reviewed by Greptile |
| self._has_particle_geometry = bool(self._geometry_paths) and any( | ||
| prim.IsA(UsdGeom.Points) for prim in stage.Traverse(Usd.TraverseInstanceProxies()) | ||
| ) |
There was a problem hiding this comment.
Coffee grains miss loading waits
With grains_per_particle > 0, the coffee demo disables its spawned particle visuals, so Newton publishes no particle geometry through SDP. CoffeeGLVisualizer._update_geometry instead adds and updates its own UsdGeom.Points directly in OvStage.
The _geometry_paths check therefore leaves _has_particle_geometry false, and camera products keep OnlyOnFirstRequest. Later captures can show old grain positions—the same stale-particle problem this PR fixes for SDP particles. Include callback-published particles in the loading-wait policy and add a regression test for this path.
There was a problem hiding this comment.
Fixed in fc2b2a9. Registering a geometry callback now switches every camera product of the engine to wait for loading on every capture. The new GPU test test_ovrtx_callback_particles_render_their_current_positions covers this path: it fails without the fix and passes with it.
Geometry callbacks, such as the coffee demo's grains, add USD Points to OvStage after camera products exist, so the stage check in prepare_stage cannot see them. Those products kept the first-capture-only loading wait, and the callback's particles were missing from the next captures. Move the wait flag to the shared engine. Switch the products of every renderer on the engine to wait on every capture when a scene has particles or when a geometry callback is registered. Signed-off-by: Alexander Temirov <atemirov@nvidia.com>
Raise the async_rendering FutureWarning where OVRTXRenderer consumes its config, so Python shows it by default. Keep OVRTXBackendCfg.use_ovstage and OVRTXRenderer.drain_pending_renders, both in v3.0.0, as deprecated no-ops instead of removing them. Warn when ISAAC_LAB_OVRTX_USE_OVSTAGE is set, because it is now ignored. Name the removed capture metadata in the breaking changelog entry, file the camera mask change as changed, and add the testing-package skip fragment. Signed-off-by: Alexander Temirov <atemirov@nvidia.com>
The renderer kept one hidden-pose copy per SDP source buffer because an asynchronous write could still read the previous copy. OvStage writes now wait for consumption, so one copy serves every update. Keep the copy itself, so hiding environments never changes the shared publication. Signed-off-by: Alexander Temirov <atemirov@nvidia.com>
Build the OVRTX rendering cases as fixed OvStage pairs instead of loops over one stage, drop the one-value stage_mode parameter and range(1) camera paths, and remove the PPISP test that only covered the deprecated async_rendering. Record population, not a fake clone, in the camera ordering test, and check the second renderer's published transform. Keep ovrtx_replicate where main has it, stop tracing it, and correct the read_output, render, and material-module docstrings. Drop the unrelated as_posix change and the redundant camera-processor doc line. Signed-off-by: Alexander Temirov <atemirov@nvidia.com>
|
run-ci |
Description
Make OvStage the only scene path used by OVRTX rendering on
main. Population, cloning, queries, transforms, geometry, camera calibration, materials, markers, and Newton viewer appearance now use OvStage. OVRTX remains the rendering engine.Remove legacy runtime bindings, asynchronous capture queues, duplicate rendering cases, and obsolete asynchronous golden images. Run the OvStage rendering job on every activated CI build.
Migration:
ISAAC_LAB_OVRTX_USE_OVSTAGEis ignored and emits aUserWarningwhen set; remove it from launch scripts.OVRTXBackendCfg.use_ovstageis deprecated, has no effect, and emitsDeprecationWarningwhen set toFalse.ovrtx_replicateremains as a deprecated compatibility helper and emitsDeprecationWarning; migrate toovstage_replicate. This helper still uses the old native API when called explicitly; the normal rendering path does not use it.OVRTXRendererCfg.async_renderingis deprecated, has no effect, and emitsFutureWarningwhenOVRTXRendererreads a config that sets it toTrue.OVRTXRenderer.drain_pending_renders()is deprecated and returns no errors. OVRTX no longer adds"capture"metadata toCameraData.info. Camera tensor processors receive the current capture's mask; the foveated camera no longer rejectsmask_to_sensor_fovwith that ignored option.ISAAC_LAB_SHARE_OVSTAGE=1.The deprecated options do not keep the old scene path or the asynchronous pipeline working.
GPU inputs remain device-resident. Writes preserve producer-stream ordering and complete before input buffers are reused. Inactive OVRTX asset routes are discarded when no renderer is configured.
Particle capture fix
After a particle position update, OvStage held the new position but the next camera capture could show the old geometry: depth 8.5 instead of 7.5. Camera products waited for renderer loading only on their first capture, allowing subsequent particle rebuilds to remain pending.
Scenes with published geometry and USD
Pointsnow wait for loading on every camera capture. Geometry callbacks, such as the coffee demo's grains, add USDPointsafter camera products exist; registering one switches every camera product of the engine to the same wait. The check includes authored prototypes and instance proxies, so native clones do not need to exist on the USD stage. Rigid, mesh-only, and cable-only scenes retain the first-capture-only setting. The existing particle test passes without changing its motion, immediate source-buffer-reuse, or depth assertions.The native loading barrier can perform extra internal render passes. A warm 48-capture rigid-scene diagnostic measured median capture time of 12.1 ms with the old setting, 67.6 ms with an unconditional barrier, and 11.9 ms with the final scoped fix. These are local diagnostic timings, not a general throughput benchmark. Particle scenes retain the loading-wait cost for correctness; the detection is conservative when a scene has static USD particles alongside other published geometry.
Validation
Latest Linux validation and before/after comparison
Tested
be63b95289bagainst pinnedmainbaseline595d83eec24on Linux / RTX PRO 6000 Blackwell Workstation (96 GB), driver 615.71.09.d31603ff5e8389d1d6b2a5daef6ea2cb074c26ff.Medians below compare the existing OvStage path with this PR. Arrows are baseline → PR. Kuka uses Newton/MJWarp; Reorient uses OVPhysX.
Legacy OVRTX baseline versus the PR’s separate OvStage path:
Initialization KPI sums the existing benchmark startup phases and excludes the initial camera reset. End-to-end startup includes that reset and ends at the first device-completed environment step. The harness preloads some modules before the benchmark import timer and synchronizes the first step, so these absolute KPIs should not be equated with a separately launched dashboard run. Step time is the full loop wall time, synchronized at the boundaries, including action sampling.
Startup was variable; three repetitions do not establish statistical equivalence or justify a claim that initialization is unchanged. The two metrics can move differently between configurations.
At 8,192 Reorient environments, shared-stage joint-wrench initialization was 14.43 → 14.41 s (baseline → PR), versus 0.85 → 0.86 s with separate stages. This cost is present on both revisions, consistent with the area addressed by #9333; that fix is absent from both tested revisions. This workstation/driver and public-wheel comparison does not validate the earlier GTL native-driver fix.
Runtime commands used the repository’s
benchmark runtimeentrypoint with--seed 42 --warmup_steps 50 --num_steps 100,renderer=ovrtx, and:--task Isaac-Lift-KukaAllegro-Camera --num_envs 2048 physics=newton_mjwarp presets=rgb64,single_camera.--task Isaac-Reorient-Cube-Shadow-Camera-Direct --num_envs {2048,4096,8192} physics=ovphysx presets=rgb env.scene.tiled_camera.width=64 env.scene.tiled_camera.height=64.ISAAC_LAB_OVRTX_USE_OVSTAGE=0/1selects legacy/OvStage. PR: selector unset.ISAAC_LAB_SHARE_OVSTAGE=0/1selects separate/shared stages. Actual scene classes were recorded and verified.At 4,096 Reorient environments with separate stages, the initialization-only KPI increased from 25.29 to 33.82 s, while startup through the first completed step increased from 38.76 to 40.81 s. The measured native-renderer construction phase varied between processes. These results do not support a claim of identical startup across all configurations.
Current CI and targeted reproductions
At the latest check of this same head, 55 checks succeeded, 5 were skipped, 1 informational comparison was neutral, and 2 failed. Renderer correctness jobs passed. The rolling-history performance gate passed 3 workloads and skipped 1; its camera cases use the Newton renderer and do not replace the OVRTX comparison above.
test_child_process_does_not_keep_closed_file_lockedfailed with an HDF5 file-lockBlockingIOError.Local foveated-camera coverage remains unavailable because
foviis not installed. This validation does not cover ARM or the affected GTL Server GPU/driver configuration. Existing native-renderer and Torch deprecation warnings remain.Type of change
Release backport
Checklist