Repository navigation
Conversation
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
🔴 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. |
There was a problem hiding this comment.
🟡 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 |
There was a problem hiding this comment.
🟡 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: |
There was a problem hiding this comment.
🟡 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. |
There was a problem hiding this comment.
🟡 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): |
There was a problem hiding this comment.
🟡 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.
[Medium impact] The PR appears safe to merge. SummaryThis PR removes obsolete camera render-data properties, moves the split workaround into known issues, and consolidates its tests.
Acknowledged intent: Reviews (1) · Last reviewed commit: "Wrap the docstring of the render product..." · Reviewed by Greptile |
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.
render_product_path,num_colsandnum_rowsofOVRTXCameraRenderData. 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)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-cion the pull request.pre-commitchecks withuv run isaaclab --formatsource/<pkg>/changelog.d/for every touched package (do not editCHANGELOG.rstor bump package versions — CI handles that)CONTRIBUTORS.mdor my name already exists there