Skip to content

Select the latest OVRTX camera capture when DLSS returns multiple frames - #8882

Merged
pbarejko merged 1 commit into
isaac-sim:mainfrom
AntoineRichard:codex/fix-ovrtx-dlss-frame-selection
Oct 30, 2026
Merged

pbarejko merged 1 commit into
isaac-sim:mainfrom
AntoineRichard:codex/fix-ovrtx-dlss-frame-selection

Conversation

@AntoineRichard

@AntoineRichard AntoineRichard commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Description

When DLSS frame generation returns an intermediate image before the real camera capture, OVRTX readback currently publishes the first image and discards the real one. Select the frame with the latest capture end time before extracting any camera outputs or running PPISP. Keep the direct single-frame path and the existing validation for missing products/frames.

Extend the existing renderer contracts to verify real capture pixels, other requested outputs, and matching asynchronous capture metadata, including an output list whose newest frame is neither first nor last. Add the isaaclab_ov changelog fragment. No dependency or public API changes.

Fixes #8881. Follows #8583, whose original adapter was removed by #8585.

Visual comparison

Scene: An orange cube moves sideways against a plain grey background, viewed straight on from a fixed camera. The cube appears nearly square because one face points toward the camera. The top row shows the full frames; the bottom row enlarges the blue-box region. The right column shows the pixel-difference heatmap.

Recorded native images from the same DLSS-enabled render request: before is the intermediate image selected by frames[0]; after is the latest real capture selected by this fix, 8.33 ms newer. The lower row enlarges identical bounds. The heatmap shows the maximum absolute RGB channel difference per pixel on a fixed 0–80 scale.

Native frame 2: intermediate image before the fix, real capture after the fix, and pixel-error heatmap with enlarged crops.

At frame 2, 129,036 RGB channel values differ before the fix (maximum error 78/255). The fixed output has zero pixel differences from the generation-disabled control. These are recorded pixels; the image panels use nearest-neighbor display.

Second recorded capture: frame 15

Native frame 15: before and after selection, with the same error scale and enlarged crop.

At frame 15, the selected capture changes from 258.33 ms to 266.67 ms. The baseline differs in 87,969 RGB channel values (maximum error 79/255); the fixed output again exactly matches the control.

Validation

  • Existing regression assertions failed before the fix: wrong intermediate RGB values in delayed observations and actual CPU extraction. They pass after the fix.

  • Full renderer contract file: 53 passed, including all five GPU integration cases:

    uv run python -m pytest -q source/isaaclab_ov/test/test_ovrtx_renderer_contract.py

    Validation used a separate uv environment with verified imports from this worktree and pinned OVRTX 0.6.0.1791947691, OVStage 0.3.0.1791986420, and Warp 1.17.0. Torch deprecation warnings and native runtime warnings were observed.

  • Repository formatting/lint (uv run isaaclab -f), changelog validation, and git diff --check passed. Independent review found no blocking issues.

  • Native reproduction used a moving cube at 1280×720, 60 Hz, on RTX 5090 / driver 610.57.04. With generation disabled, all 16 steps returned one frame; enabled, all 16 returned two: an earlier intermediate followed by the real capture.

  • Replaying the unchanged baseline/fixed readback methods against those native timestamps and saved pixels showed:

    Saved step Baseline capture delay Baseline differing RGBA channel values Fixed differing values
    2 8.33 ms 129,036 0
    15 8.33 ms 87,969 0

    At both saved steps, fixed output exactly matched the generation-disabled control. Successful native activation used an LDR-only render product together with explicit settings schemas, limitedOps=false, inverse-compositing settings, and a RenderSettings product relationship; the required companion setting was not isolated. The synthetic missing-AOV case is test coverage, not a native observation.

This change selects the correct single camera observation. Presenting every generated image at a higher window cadence is separate work.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have read and understood the contribution guidelines.
  • I have run the pre-commit checks with uv run isaaclab --format.
  • I have documented the changed behavior in the package changelog.
  • My changes generate no new warnings (dependency/runtime warnings observed as described above).
  • I have validated the changed behavior and applied the test-audit criteria to the test changes.
  • I have added a changelog fragment for every touched source package.
  • My name already exists in CONTRIBUTORS.md.

@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

OVRTX now selects the frame with the latest end_time before copying camera outputs or running PPISP.

  • OVRTX cameras use the latest capture when several frames arrive.

Static review found no actionable issues. Tests were not run during this review.

Reviews (1) · Last reviewed commit: "Select the latest OVRTX capture from gen..." · Reviewed by Greptile

@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

All reviewed code categories look good.

  • PR description: The title and scope match the diff; remove repeated capture evidence, native-activation detail unrelated to the fix, and the unverifiable independent-review claim; no performance benchmark is needed.
  • Design and architecture: Architecture looks good.
  • Scope and over-engineering: No over-engineering issues.
  • API: API changes look good.
  • Compatibility and deprecation: No breaking changes identified.
  • Implementation: Implementation looks good.
  • Style consistency: Style consistency looks good.
  • Test quality: Test quality looks good.

No blocking issues. No inline findings.

Automated review; human maintainers own approval decisions.

@pbarejko

Copy link
Copy Markdown
Collaborator

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 Oct 30, 2026
@pbarejko
pbarejko merged commit bfcf3ca into isaac-sim:main Oct 30, 2026
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Investigate OVRTX sensor frame selection when DLSS frame generation returns multiple frames

4 participants