Skip to content

Reduce the OVRTX render product split to a minimal workaround - #9216

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

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

Conversation

@pv-nvidia

@pv-nvidia pv-nvidia commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Description

Follow-up to #9131, which lets the OVRTX renderer split a camera sensor over several render products after a failed first frame. The review after the merge asked to treat the split as a temporary workaround for a renderer limit, and to keep it out of the public interface. This PR does that:

  • No public setting. OVRTXRendererCfg.max_envs_per_render_product is gone. The environment variable ISAAC_LAB_OVRTX_MAX_ENVS_PER_RENDER_PRODUCT takes its place, like the other internal OVRTX toggles. Unset, the search runs after a failed first frame. An integer skips the search, and all turns the split off. A variable is global, so the questions of one value per renderer configuration and of Hydra overrides disappear. Code that set OVRTXRendererCfg.max_envs_per_render_product gets a configuration error, and code that read render_product_path, num_cols or num_rows of OVRTXCameraRenderData gets an AttributeError. Neither was in a release.
  • No deprecated properties. OVRTXCameraRenderData is opaque to the caller, so render_product_path, num_cols and num_rows are removed. The changelog records the removal next to the pending deprecation entry, because the changelog gate does not allow changes to pending entries.
  • Minimal docs. The split is mentioned only in the known issue about the 4 GiB limit, in two sentences. The variable itself is not documented. The warning names it when a user needs it.
  • Minimal comments. The renderer keeps only the reasons that a maintainer needs, in one sentence each. Two TODO comments mark the workaround for removal once OVRTX renders a tiled image of any size.
  • Messages for camera users. The warnings, errors and the note on a failed frame speak of environments, image size, path-tracing samples per pixel, GPU memory and startup time, and they say what to set.
  • Fewer tests. The pure plan tests are one parametrized test, the two tests about a sensor removed during the search are one, and the test of the environment ranges is merged into the stitching test.
  • A test with a real failed frame. 4 environments of 1024 x 1024 pixels at 40 path-tracing samples per pixel with RTX anti-aliasing exceed the limit for real. The test checks that the error text of OVRTX still matches, that the search splits the sensor into 2 render products, and that every environment renders. It needs about 13 GB of GPU memory and skips on GPUs with less than 16 GiB.
  • Lidar. A lidar sensor renders all environments through one render product in its own step, so the split neither helps nor harms it. A lidar split would need its own retry loop, and nobody has reproduced the limit for a lidar yet.

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

Type of change

Release backport

  • Backport this pull request to the active release branch after it merges into main

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

@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.

@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Replaces the unreleased split setting with an internal environment variable and removes the old camera-data properties.

  • OVRTX camera splits now use an internal environment setting.
  • Camera render data exposes details through its product entries.

No actionable new issues were found. Review was based on code inspection; tests were not run.

Reviews (2) · Last reviewed commit: "Apply the second code review of the rend..." · Reviewed by Greptile

@pv-nvidia pv-nvidia changed the title Keep the OVRTX render product split out of the public interface Reduce the OVRTX render product split to a minimal workaround Nov 25, 2026
Comment thread docs/source/refs/issues.rst Resolved
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.
The reader of these texts is an RL engineer. The reader knows environments,
camera sensors, image size, path-tracing samples per pixel, GPU memory and
startup time, but not renderer internals. The runtime messages, the public
docstrings and the docs of the split now speak in those terms. They explain
a render product where the reader meets it first and say what the reader
can do. The developer-facing comments and tests of the feature say "tiled
image" instead of "atlas", so that one term remains. The first
paragraphs of the known issue, which come from main, keep "atlas".
The pieces of these implicitly joined strings broke in the middle of a
sentence, so the code showed fragments such as a lone "The" or "Set" at
the end of a line. Each piece now holds one sentence, or ends at a comma.
The note about a failed frame gives its first sentence in two sentences,
because it did not fit one line.
…memory

A split lowers the peak GPU memory, because each render product needs
smaller buffers. The note about a failed frame said the opposite.
The split of a camera sensor over several render products is a temporary
workaround for a renderer limit, not a feature. The environment variable
ISAAC_LAB_OVRTX_MAX_ENVS_PER_RENDER_PRODUCT replaces the public field
OVRTXRendererCfg.max_envs_per_render_product, as the other internal OVRTX
toggles do. The messages name the variable, and the docs lose the
command-line example.
The real failed frame test checks the memory of the device it renders on.
Two comments that restated a divmod are gone. The known issue no longer
names the environment variable, because the warning names it when a user
needs it.
@pv-nvidia
pv-nvidia force-pushed the pv/render-product-split-followup branch from 7da68ab to 02d0b81 Compare November 26, 2026 15:24
The renderer checks ISAAC_LAB_OVRTX_MAX_ENVS_PER_RENDER_PRODUCT when it is
constructed, so a wrong value fails before the scene is built. The "renders
no frames" error gives the integer hint only after a failed frame, because a
failed scene write names no groups. The note about a failed frame says that
the samples per pixel come from the camera configuration, lists the sensors
of the other renderers of a shared engine that wait for a first frame, and
says that no sensor could be halved when the search ends below the limit.
The changelog fragment says that the replaced attribute was never in a
release.
The renderer reads ISAAC_LAB_OVRTX_MAX_ENVS_PER_RENDER_PRODUCT once, when it
is constructed, and passes the value to each camera sensor. The failed frame
note reads the sensors itself and no longer repeats the stop rule of the
split search. The "renders no frames" error has one message, because its
cause carries the note. A property of the camera render data gives the
largest number of environments in one render product.

The tests share helpers for the second renderer on a shared engine, for
tiled test images and for the live GPU scene and camera sensor.
The plan is applied in a finally block, so an exception while the note
is built cannot leave failed render products in the step set. The note
says that the integer needs a camera prim in each environment. The known
issue says again that OVRTX fails a frame only above the buffer limit.
@pv-nvidia

Copy link
Copy Markdown
Contributor Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Nov 26, 2026
@kellyguo11

Copy link
Copy Markdown
Contributor

I enabled backporting on this PR. feel free to merge.

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.

3 participants