application-flow
High-level overview of a typical ovrtx application lifecycle. Use when user asks how to structure an ovrtx program, what the main…
Asynchronous operation patterns including polling, timeouts, and non-blocking workflows. Use when user asks about async rendering, non-blocking operations, polling, timeouts, or parallel rendering.
$ npx -y skills add nvidia-omniverse/ovrtx --skill async-operations --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/async-operationsContext preview
The summary Claude sees to decide when to auto-load this skill.
Asynchronous operation patterns including polling, timeouts, and non-blocking workflows. Use when user asks about async rendering, non-blocking operations, polling, timeouts, or parallel rendering.
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: LicenseRef-NvidiaProprietary # # NVIDIA CORPORATION, its affiliates and licensors retain all intellectual # property and proprietary rights in and to this material, related # documentation and any modifications thereto. Any use, reproduction, # disclosure or distribution of this material and related documentation # without an express license agreement from NVIDIA CORPORATION or # its affiliates is strictly prohibited. name: async-operations description: > Asynchronous operation patterns including polling, timeouts, and non-blocking workflows. Use when user asks about async rendering, non-blocking operations, polling, timeouts, or parallel rendering. license: LicenseRef-NvidiaProprietary author: NVIDIA ovrtx tags: - ovrtx - async - operations tools: - Read - Grep
Use this skill when the user asks about async rendering, non-blocking operations, polling, timeouts, or parallel rendering.
Resolve inputs in this order: existing repository files and referenced snippets, explicit user request, then broader agent context.
1. Identify whether the caller needs blocking execution, non-blocking polling, progress reporting, or two-phase result fetching. 2. In Python, use the two-stage pattern for result-bearing operations: call the `_async` method, `wait()` for a pending fetch object, then `fetch()` the final result. 3. For non-blocking Python waits, call `wait(timeout_ns=0)` first and handle `None` as "still running"; use a finite or infinite wait only when the workflow is ready to block. 4. In C, treat every enqueue result as asynchronous: check the enqueue status, wait on `op_index`, inspect operation errors, then fetch or destroy result handles as required. 5. When changing code, run the narrow async/status docs test or example that owns the snippet whenever practical.
This skill has no scripts.
All ovrtx enqueue operations (`open_usd`, `add_usd_reference`, `step`, `write_attribute`, etc.) are internally asynchronous and stream-ordered. In Python, the default methods (e.g., `open_usd`, `add_usd_reference`, `step`) block until completion. The `_async` variants return `Operation` objects that support polling and custom timeouts.
In C, all enqueue calls return immediately with an `ovrtx_op_id_t` that can be polled or waited on.
> **Source:** `tests/docs/python/test_support_api.py` snippet `doc-open-usd-async` > > The same polling pattern applies to `open_usd_async` and `add_usd_reference_async` — call `op.wait(timeout_ns=0)` to poll, or `op.wait()` to block.
> **Source:** `tests/docs/python/test_camera_sensors.py` snippet `doc-step-async`
> **Source:** `examples/python/minimal/main.py` snippet `step` > > The synchronous `step()` is equivalent to `step_async().wait()`.
In 0.3.0 the Python `RendererResult` return type was removed; `step_async()` now follows the standard two-phase `Operation` / `PendingFetch` lifecycle.
> **Source:** `tests/docs/python/test_camera_sensors.py` snippet `doc-step-async`
`Operation.query_status()` returns a point-in-time `OperationStatus` (state, progress, resource counters). Safe to call repeatedly while the op is `PENDING`; it becomes unavailable after `wait()` consumes the operation.
> **Source:** `tests/docs/python/test_base.py` snippet `doc-operation-status`
> **Source:** `examples/c/minimal/main.cpp` snippet `load-usd-and-wait` > > The load snippet demonstrates polling with `ovrtx_timeout_t{0}`.
> **Source:** `examples/c/minimal/main.cpp` snippet `load-usd-and-wait`
> **Source:** `examples/c/minimal/main.cpp` snippet `step-renderer` > > Uses `ovrtx_timeout_infinite` to block until completion.
> **Source:** `examples/c/minimal/main.cpp` snippet `load-usd-and-wait` > > Check `wait_result.num_error_ops` after any `ovrtx_wait_op` call.
For long-running operations (e.g., USD loading), call `ovrtx_query_op_status(renderer, op_id, &status)` to get progress and named resource counters, then `ovrtx_release_op_status(renderer, &status)` to release the returned pointers. Counter names are operation-dependent (e.g., `"shaders"`, `"textures"`, `"materials"` during USD loading). A `total` of 0 means the total is not yet known.
> **Source:** `examples/python/status-queries/main.py` snippet `wait-operation-with-status` > > **Source:** `examples/c/status-queries/ma
ovrtx is a C and Python library for embedding Omniverse RTX sensor simulation and visualization directly into applications.
High-level overview of a typical ovrtx application lifecycle. Use when user asks how to structure an ovrtx program, what the main…
Replacing persistent ovrtx attribute bindings with reusable ovstage queries for repeated writes or maps. Use when user asks about…
Binding materials to prims at runtime. Use when user asks to assign a material, change a material, set material binding, or swap…
Available camera render outputs for Real-Time Path-Tracing (RT2) mode. Use when user asks what AOVs/render vars are available,…
Cloning USD subtrees to create copies at new paths. Use when user asks to clone, duplicate, copy a prim, or create instances of…
Authoring and configuring OmniLidar sensor prims and lidar PointCloud render outputs. Use when user asks to create a lidar scene,…