Skip to content

Setup IsaacRTX Minimal mode - #7377

Merged
kellyguo11 merged 7 commits into
isaac-sim:developfrom
pbarejko:pbarejko/isaac-rtx-mnimal
Sep 4, 2026
Merged

kellyguo11 merged 7 commits into
isaac-sim:developfrom
pbarejko:pbarejko/isaac-rtx-mnimal

Conversation

@pbarejko

Copy link
Copy Markdown
Collaborator

Description

NVBug: 6674420

Newton MJWarp configured for Isaac RTX Minimal Mode with Simple Shading Full MDL is substantially slower than Newton MJWarp with OVRTX. The Isaac RTX path is not enabling Minimal Mode as expected, preventing the intended performance gains. Investigate and fix the Isaac RTX configuration path so Minimal Mode is correctly enabled.

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (existing functionality will not work without user modification)
  • Documentation update

Release backport

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

Screenshots

Please attach before and after screenshots of the change if applicable.

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 ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package (do not edit CHANGELOG.rst or bump extension.toml — CI handles that)
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@pbarejko
pbarejko requested review from a team, mataylor-nvidia and nvsekkin August 27, 2026 01:00
@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team labels Aug 27, 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

The change correctly scopes RTX Minimal settings to each requesting render product, but this also changes every sibling AOV attached to that product. Mixed requests such as rgb plus simple_shading_full_mdl therefore no longer preserve the prior path-traced RGB behavior and need an explicit warning or documentation.

  • Design and architecture: Per-render-product authoring avoids process-wide last-camera-wins interactions and is consistent with the adjacent background-color implementation. However, Minimal mode applies to the entire render product, not only the simple-shading AOV, so all data types requested by the same camera share the changed rendering mode.
  • API: The existing simple_shading_* names and shading-level mapping remain stable. The behavioral contract for combining simple shading with color outputs is now materially different and should be made explicit in documentation or diagnosed when such combinations are configured.
  • Implementation: The helper validates the render-product prim and authors both required attributes in one Sdf.ChangeBlock. The contract test verifies per-product attributes and absence of global setting writes, but the changed path attaches all annotators to that same product and does not address mixed simple-shading and color requests.

Minor fixes needed. Posted 1 actionable finding inline.

Automated review; human maintainers own approval decisions.

simple_shading_mode = self._resolve_simple_shading_mode(spec)
if simple_shading_mode is not None:
get_settings_manager().set_int(SIMPLE_SHADING_MODE_SETTING, simple_shading_mode)
self._apply_minimal_render_mode(stage, rp.path, simple_shading_mode)

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 · Design Architecture — Minimal mode also changes sibling AOVs

The render mode is authored on the whole render product, and every annotator for the camera attaches to that same rp.path (lines 426-428). A camera configured with e.g. data_types=["rgb", "simple_shading_full_mdl"] previously kept path-traced rgb; it now yields Minimal-shaded color with no diagnostic. Warn when simple shading is combined with other color data types, or state this product-wide effect in the new docs note.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this may be valid let me take a look. recently the PR #7204 does a similar validation i can take a stab at this

@greptile-apps

greptile-apps Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR configures RTX Minimal shading per render product while preserving the configured renderer for regular color outputs.

  • Authors the render mode and shading level as render-product USD attributes instead of process-wide settings.
  • Keeps mixed RGB and simple-shading products on path tracing to preserve color output.
  • Adds renderer contract tests and documents the resulting behavior and lighting constraints.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
source/isaaclab_physx/isaaclab_physx/renderers/isaac_rtx_renderer.py Applies simple-shading configuration per render product and avoids switching mixed color products to Minimal mode.
source/isaaclab_physx/test/renderers/test_isaac_rtx_renderer_contract.py Adds contract coverage for each shading level, mixed color requests, attribute types, attachment ordering, and process-wide setting isolation.
docs/source/how-to/configure_rendering.rst Documents per-product Minimal mode, mixed-output behavior, and lighting limitations.
source/isaaclab_physx/changelog.d/fix-isaac-rtx-simple-shading-minimal-mode.rst Records the per-render-product Minimal-mode correction and isolation from other cameras and the viewport.

Reviews (2): Last reviewed commit: "Preserve mixed color output with simple ..." | Re-trigger Greptile

simple_shading_mode = self._resolve_simple_shading_mode(spec)
if simple_shading_mode is not None:
get_settings_manager().set_int(SIMPLE_SHADING_MODE_SETTING, simple_shading_mode)
self._apply_minimal_render_mode(stage, rp.path, simple_shading_mode)

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.

P1 Minimal mode corrupts color

When a camera requests rgb or rgba together with a simple_shading_* output, this switches their shared render product to Minimal mode, causing the normal color output to use Minimal shading instead of the configured path-tracing pipeline. Reject this combination as OVRTX does, or place the outputs on separate render products.

Knowledge Base Used:

Prevent product-wide Minimal mode from silently changing RGB output, and align validation with OVRTX while preserving duplicate requests.
Keep transient product settings stronger than annotator synchronization while preserving the existing first-mode fallback for multiple simple-shading requests.
Keep color-bearing render products on their configured mode while applying only the per-product shading level, avoiding a breaking validation change.
@nvsekkin

Copy link
Copy Markdown
Collaborator

@greptile review

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I think we should remove those and rely on per render product settings.

nvsekkin and others added 3 commits September 1, 2026 16:40
Avoid process-wide color-render mutations for simple shading while preserving the existing headless depth-only optimization and documenting mixed-color behavior.
@kellyguo11

Copy link
Copy Markdown
Contributor

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 Sep 3, 2026
@kellyguo11
kellyguo11 merged commit c58715b into isaac-sim:develop Sep 4, 2026
51 of 52 checks passed
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.

4 participants