Skip to content

omni.replicator.core: orchestrator.step() drives four full renders per capture and keeps one #933

Open

Description

@franz6ko

Description

What happens

A single rep.orchestrator.step() takes four application updates. With sensors on
autotrigger (omni:sensor:tickRate = 0, the default) every application update renders
every render product, so a capture that keeps one image per camera pays for four.

Three of the four are not wanted as images:

Update Purpose Image used?
1 publish the scheduled capture time no
2 produce the frame yes
3, 4 let the host-side writer queue drain no

In a path-traced configuration with spp == totalSpp each update is a complete,
converged render, so 75% of the cost of a capture is discarded pixels.

Where it comes from

omni/replicator/core/scripts/orchestrator.py, extension omni.replicator.core-1.13.36+110.3.0.

The two flush updates, line 1991:

elif dispatcher and _needs_multitick_post_render_flush:
    for _ in range(2):
        await omni.kit.app.get_app().next_update_async()

Taken whenever multi-tick rendering is enabled and the timeline is playing:

_needs_multitick_post_render_flush = _multitick_rate_enabled and _orchestrator._timeline.is_playing()

The sibling flush a few lines above explains the intent: "host-side render vars and
writer schedule events are only observable on later rendered updates"
. The requirement
is elapsed updates, not pixels, but on autotrigger sensors each one renders.

The scheduling update, line 1910:

while attempts < MAX_STEP_ATTEMPTS and (
    not _orchestrator._sim_times_to_write
    or (_orchestrator.status == Status.STEPPING
        and cur_sim_time == _get_time(*_orchestrator._sim_times_to_write[-1]))
):
    attempts += 1
    await omni.kit.app.get_app().next_update_async()

This needs at least one update by construction. With two GPUs it needs two, because the
orchestrator observes the new capture time one update later.

Measured

Ten cameras, 1944x1204, path tracing at 32 spp, spp == totalSpp, one RTX 6000 Ada,
Isaac Sim 6.1.0-rc.26. Timeline playing, which is required by our character animation.

Configuration Updates per capture s per captured frame
default 4 60.3
--/rtx/hydra/supportMultiTickRate=false 2 29.6

Removing the two flush updates halves the frame. Outputs were compared file by file
across ten frames and ten cameras: rgb, depth and semantic segmentation byte-identical.

What we expected

That the number of full renders per capture matches the number of captures requested.

Two things would fix it, both inside Replicator:

  1. The flush should not render. It needs updates to elapse so writer schedule events
    become observable; it does not need images. Either skip it when nothing is waiting on
    it, or advance the application without driving the render graph.
  2. Publishing the scheduled capture time should not cost a render, and should not
    cost two of them when more than one GPU is present.

Workaround and its cost

Launching with --/rtx/hydra/supportMultiTickRate=false removes the flush, which is the
50% above. It is not free: the documentation states that most code paths in 6.0 assume
the global default, and the same setting also relaxes the render-wait loop, which
otherwise requires the SDG dispatcher's compute count to have advanced.

Per-sensor tick rates are the other obvious route and do not work here: a camera with a
rate may skip the very update the capture is waiting for, so one image is silently lost
and the writers renumber rather than leave a gap. That matches the answer in
https://forums.developer.nvidia.com/t/different-sensors-with-different-frequencies/312398
("this is currently not a supported feature").

Isaac Sim version

6.1.0-rc.26+release.49347.2d230af4.gl

Operating System (OS)

Ubuntu 24.04, CUDA 13.0

GPU Name

RTX 6000 Ada

GPU Driver and CUDA versions

Driver 580.95.05, Cuda 12.4

Logs

No response

Additional information

No response

Activity

  1. vick-yu commented on Nov 10, 2026

    @vick-yu

    Thanks for the detailed write-up. The per-update table, the exact line references and the byte-identical output comparison made verification straightforward.

    We will review this with our team and follow up with you.

  2. vick-yu commented on Nov 10, 2026

    @vick-yu

    @franz6ko could you please share the 10-camera path-traced scene along with the script you used for the 60.3 s / 29.6 s numbers? This would greatly help the team in confirming the 2x figure on our side? Thank you!

  3. fran-tinelli-brt commented on Nov 25, 2026

    @fran-tinelli-brt

    @franz6ko could you please share the 10-camera path-traced scene along with the script you used for the 60.3 s / 29.6 s numbers? This would greatly help the team in confirming the 2x figure on our side? Thank you!

    Our own scene and pipeline script cannot be shared: they are built on the client's
    proprietary assets and code. Attached is a standalone script that reproduces the
    same effect.

    ./python.sh repro_step_renders.py                    # four renders per capture
    ./python.sh repro_step_renders.py --multitick off     # two
    

    It times every application update that step_async() spends, so the renders show up
    as updates of equal cost. Ten cameras at 1944x1204, path tracing
    spp == totalSpp == 32, one RTX 6000 Ada, steady state after the first capture:

    Updates that render Capture
    default 4 2.47 s, 2.50 s
    --/rtx/hydra/supportMultiTickRate=false 2 1.81 s
    capture 2:  2.47 s over 8 updates   0.01 0.07 0.03 0.02  0.55 0.58 0.53 0.59
                4 of them render, 91% of the time
    capture 3:  2.50 s over 8 updates   0.01 0.04 0.03 0.02  0.56 0.59 0.58 0.58
                4 of them render, 92% of the time
    

    The four values near 0.57 s are the four complete renders, 91% of the capture, and one
    image per camera is kept. The cheap updates before them are scheduling iterations: the
    new capture time has not reached the render graph yet, so the converged image from the
    previous frame still stands and there is nothing to draw.

    Two conditions are needed:

    1. The scene has to be moving. A path-traced image at spp == totalSpp converges
      in a single pass and is not redrawn until something invalidates it, so in a still
      scene the discarded updates cost nothing and the effect disappears entirely. Timing
      bare app.update() calls at ten cameras: 0.009 s still, 2.041 s moving, and
      0.004 s with the render products disabled. This is most likely why the 2x did
      not show up on your side.
    2. /omni/replicator/asyncRendering has to be off, as it is in our pipeline. Left
      on, the call takes the late-schedule drain instead of the two-update flush and
      spends eight updates instead of six (even more).

    The absolute seconds depend on scene complexity: a render costs 0.57 s here against
    15 s in our production scene. The structure is the same -- four renders per capture,
    one kept.

    repro_step_renders.py

  4. vick-yu commented on Dec 3, 2026

    @vick-yu

    @fran-tinelli-brt, thanks for sharing repro_step_renders.py.

    We ran it on our side and can confirm the behavior. We're tracking this internally and will update you with any progress.

  5. ycpss91255 commented on Dec 3, 2026

    @ycpss91255

    As requested, #968 reports an intermittent native crash under rep.orchestrator.step() that might be related to this issue. When preparing #968, we found no matching stack or error text in #933, so the connection remains unconfirmed.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions