Skip to content

Keep the OVRTX render product split out of the public interface - #9216

Open
pv-nvidia wants to merge 7 commits into
isaac-sim:mainfrom
pv-nvidia:pv/render-product-split-followup
Open

pv-nvidia wants to merge 7 commits into
isaac-sim:mainfrom
pv-nvidia:pv/render-product-split-followup

Conversation

@pv-nvidia

Copy link
Copy Markdown
Contributor

Description

Follow-up to #9131, which lets the OVRTX renderer split a camera sensor over several render products. It addresses the review comments that came after the merge, and it keeps the split out of the public interface as far as possible.

  • Removes the deprecated properties render_product_path, num_cols and num_rows of OVRTXCameraRenderData. The deprecation and the removal fall into the same release. The changelog gate does not allow a change of the pending deprecation entry, so a removal entry stands next to it. (Piotr)
  • Moves the docs of the split from the renderer concepts page into the known issue about the 4 GiB limit, because the split is an implementation detail of that issue. The camera page keeps one sentence that points there. (Kelly)
  • Consolidates the tests of the split search: the pure plan tests become one parametrized test, and the two tests about a sensor removed during the search become one. The tests of the frame processing of split render products are merged where their setup allows it. (Kelly)
  • Adds a GPU test with a real failed frame. The search starts only when the error of OVRTX contains a fixed text. The other search tests inject that text. The new test makes a real frame fail with 4 environments of 1024 x 1024 pixels at 40 samples per pixel with RTX anti-aliasing, and checks that the text of OVRTX still matches, that the search splits the sensor into 2 render products, and that all environments render. It needs about 13 GB of GPU memory and skips on smaller GPUs. (Kelly)
  • Marks the workaround with TODO comments at the split search and the setting, for removal once OVRTX renders a tiled image of any size. (Kelly)
  • Lidar. The split does not cover lidar sensors. A lidar sensor renders all environments through one render product in its own step, which the camera search never touches. The lidar configuration carries the setting through its OVRTXRendererCfg, so the docstring now says that only camera sensors use it. A lidar split would need its own retry loop and env-range records, about 120 to 200 lines, and nobody has reproduced the limit for a lidar yet. (Kelly)

Tests: 230 CPU tests of the OVRTX renderer and 111 Newton visualizer tests pass. On the GPU, the new real-failed-frame test and both rows of the split test pass. The format check and the changelog check pass.

Type of change

Checklist

Docker and GPU tests run on demand. Push the commits you want tested, then
comment run-ci on the pull request.

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with uv run isaaclab --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have validated the changed behavior with focused coverage and applied the test-audit criteria to any test changes
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package (do not edit CHANGELOG.rst or bump package versions — CI handles that)
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

OVRTXCameraRenderData is opaque to the caller. PR isaac-sim#9131 deprecated its
render_product_path, num_cols and num_rows properties when a camera
sensor got several render products. The deprecation and the removal
fall into the same unreleased version, so this commit removes the
properties and the _single_product helper. Each entry of
OVRTXCameraRenderData.products has the path, num_cols and num_rows of
one render product.

The changelog gate does not allow a change of the pending deprecated
fragment, so a removed fragment records the removal next to it.
The split search is an implementation detail of the OVRTX renderer and
a workaround for the 4 GiB storage-buffer limit. The known issue about
that limit already named it. This commit merges the useful parts of the
concepts section into that entry: how "auto" works, the integer that
skips the search, the cost of a split, one value on every OVRTX renderer
configuration of a task, the renderer=rtx trap and the command-line
example. The camera concepts page and the docstring of
OVRTXRendererCfg.max_envs_per_render_product now point to the known
issue.
Three merges keep every assertion that checks a distinct behavior:

- The two tests about a sensor that a cleanup removes during the split
  search become one parametrized test. One row has the search go on,
  the other has it give up. Both rows now check that the engine ends
  with exactly the render products of the rendered sensors.
- The five _plan_split tests become one parametrized test with six
  rows. The review suggested to remove them to save CI time. They run
  in milliseconds, and two rows check rules that no other test checks:
  the plan halves the first and largest render product of a sensor, and
  of equal "auto" sensors it halves the first in the order of the
  engine. So the tests are consolidated, not removed.
- The test that writes each render product into its environment range
  merges into the test that stitches split frames. The merged test
  registers a split sensor of 5 environments with a limit of 3, so the
  atlases have 2 x 2 and 2 x 1 tiles and each tile has the value of its
  environment. It checks that a missing frame or a missing instance
  label map raises before any output is written, and it keeps the
  semantic label map checks. It now goes through
  _process_render_products, which also covers the frame selection.

test_ovrtx_process_frame_reads_authored_camera_render_vars stays
separate. It covers the path of a sensor with one render product and
reads the render var keys from the authored USD layer, with two
cameras, an albedo output and the choice of the newest of several
frames. Merging it with the split path and the label map checks would
make one long test that is hard to read.

test_ovrtx_split_search_copies_the_attributes_of_the_failed_render_product
stays unchanged. The GPU split test does not cover the skipped
attributes, the half and vector array types and the data row.

A mutation of the production code turns each merged test red: min
instead of max in the plan, floor instead of ceil for the next limit,
a write without the environment offset, and no check that every render
product returned a frame.
The split search works around the storage-buffer limit of OVRTX. A TODO
comment at the search in render_batch and at
OVRTXRendererCfg.max_envs_per_render_product names the condition for
the removal: OVRTX renders a tiled image of any size.
The search starts only when the error of OVRTX contains a fixed text,
and the other search tests inject that text. A real failed frame shows
that the text of OVRTX still matches. 4 environments of 1024 x 1024
pixels at 40 samples per pixel with the RTX anti-aliasing need a sample
buffer above the 4 GiB limit. The search then splits the sensor into 2
render products, and every environment renders. The test needs about
13 GB of GPU memory and skips on smaller GPUs.
OVRTXLidarCfg holds an OVRTXRendererCfg, so the setting is on every
lidar configuration, but only camera sensors use it.
@pv-nvidia
pv-nvidia requested a review from a team November 25, 2026 13:14
@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team labels Nov 25, 2026

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Isaac Lab Review Bot

Needs attention: Compatibility and deprecation (1), Style consistency (4), Test quality (1). Other reviewed categories look good.

  • PR description: Replace “without a behavior change” with the API-removal impact, state the 16 GiB GPU cutoff, and remove the speculative lidar line estimate; the documentation scope and reported validation introduce no measurable performance claim.
  • Design and architecture: Architecture looks good.
  • Scope and over-engineering: No over-engineering issues.
  • API: API changes look good.
  • Compatibility and deprecation: Breaking changes: deleting render_product_path, num_cols, and num_rows causes AttributeError during their deprecation release; restore warning-backed accessors, migration and removal guidance, and transition coverage until a later release.
  • Implementation: Implementation looks good.
  • Style consistency: Changed test docstrings and the tile-placement comment repeat parameter outcomes and arithmetic; trim that narration while retaining non-obvious constraints and add the required void return annotations.
  • Test quality: The new native-failure case independently checks error-text integration, but hard-coded cuda:0 bypasses device-mask selection; use test_devices and check the selected device’s memory.

Significant concerns. Posted 6 inline findings.

Automated review; human maintainers own approval decisions.

"""Paths of every render product of this sensor, in environment order."""
return tuple(product.path for product in self.products)

@property

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔴 Critical · Compatibility — Retain deprecated camera properties

Removing these three documented properties makes existing single-product callers raise AttributeError in their deprecation release. Restore the warning-backed accessors, document migration and removal guidance, and test old and new paths before a later removal.

],
)
def test_ovrtx_split_search_handles_a_sensor_removed_during_the_search(monkeypatch, num_envs, cameras, layouts):
"""A sensor that a cleanup removes during the search gets no new render products.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Warning · Style Consistency — Trim removed-sensor test narration

The docstring retells both parameter rows and their expected assertions. Keep the non-obvious cleanup-during-scene-write constraint; leave outcomes to the rows and assertions.

def test_ovrtx_split_plan_halves_one_sensor_or_gives_up(sensors, num_smaller_layouts, error, halved, next_max_envs):
"""The plan halves the "auto" sensor with the most atlas pixels times samples per pixel. Others keep their split.

- ``largest-buffer``: The halved sensor is not the first, so the row also checks that the plan keeps the order of

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Warning · Style Consistency — Remove the case inventory

The row-by-row docstring duplicates parameter IDs and expected results, adding prose to maintain when cases change. State only the shared selection invariant and any non-obvious rounding constraint.


if not torch.cuda.is_available():
pytest.skip("OVRTX rendering requires CUDA")
if torch.cuda.get_device_properties(0).total_memory < 16 * 1024**3:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Warning · Test Quality — Use the selected CUDA device

Checking GPU 0 while the test hard-codes cuda:0 bypasses the runtime device mask and can skip or run against the wrong device. Select a CUDA device with test_devices and check that device’s memory.

return render_var

def tiled(product, dtype, channels):
# Environment env_offset + i is the tile in row i // num_cols and column i % num_cols of the atlas.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Warning · Style Consistency — Remove tile arithmetic narration

This comment restates the following divmod and slice assignment rather than explaining a constraint. Remove it; the fixture calculation already shows the tile placement.

}
renderer._process_render_frames(render_data, frames, buffers)

def process(product_frames=None):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Warning · Style Consistency — Annotate new void functions

The new process and assert_outputs helpers, along with the changed test functions, omit the guide’s required no-value return annotation. Add -> None to those signatures.

@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

This PR removes obsolete camera render-data properties, moves the split workaround into known issues, and consolidates its tests.

  • Camera render data no longer offers single-product shortcuts.
  • The camera split guide now lives with the buffer-limit issue.
  • OVRTX split tests now cover recovery from a real failed frame.

Acknowledged intent: pv-nvidia explicitly describes removing render_product_path, num_cols, and num_rows in the same release that deprecated them because OVRTXCameraRenderData is opaque to callers.

Reviews (1) · Last reviewed commit: "Wrap the docstring of the render product..." · Reviewed by Greptile

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant