Generated banner for Omniverse Usd Performance Tuning
Generated logo for Omniverse Usd Performance Tuning

Omniverse Usd Performance Tuning

NVIDIAOfficialCreated by NVIDIA Omniverse

  • Skill
  • Workflow
  • Software development
  • Apache-2.0
  • Medium risk
  • Has scripts

From the author

Diagnose and optimize USD stages for slow loading, high memory, low FPS or validation; preserve asset boundaries and reuse shared definitions.
— the description by NVIDIA Omniverse

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill provides a structured workflow for diagnosing and optimizing USD stages. It focuses on improving performance metrics like load times, memory footprint, and frame rates by identifying and optimizing unique asset definitions, reusing shared definitions, and pruning unnecessary data. The process emphasizes preserving original asset boundaries, animation, and interface requirements, ensuring that downstream applications remain functional after optimization.

What it does

  • Inspects USD stages to identify performance bottlenecks and structural inefficiencies.
  • Classifies assets into atomic, package, or aggregate structures to guide optimization.
  • Performs native USD optimization operations on disjoint scopes.
  • Publishes semantic libraries to enable efficient asset reuse.
  • Validates composition, ownership, and interface accessibility of the optimized output.
  • Profiles the final output against the original baseline to report measured improvements.

When to use it

  • When a USD stage suffers from slow loading times or high memory consumption.
  • When rendering performance (FPS) needs improvement in a production environment.
  • Before finalizing a USD assembly for downstream consumption.
  • When you need to standardize asset structures according to factory-level guidelines.

Advantages

  • Maintains asset boundaries and critical metadata during optimization.
  • Reduces scene complexity through intelligent reuse of shared definitions.
  • Provides verifiable reports on performance gains and composition integrity.
  • Supports large-scale scene optimization by processing independent definition scopes.

Usage examples

“Inspect the USD stage at /data/factory.usdc for performance issues and prepare a review workspace.”
The agent initializes the workspace, runs the inspection script, and provides a summary of candidates for optimization.
“Submit the optimization decisions for the factory stage based on the generated JSON.”
The agent processes the boundary decisions, executes the optimization operations, and generates the final optimized USD assembly.

Install

  1. Download the skill as a ZIP:

    https://mp-staging.autogineer.com/agent-skills/nvidia/omniverse-usd-performance-tuning/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip omniverse-usd-performance-tuning.zip -d .agents/skills

Documentation by NVIDIA Omniverse

Omniverse USD Performance Tuning

Purpose

Improve loading, memory use or rendering for the requested workload. Preserve the prim paths, appearance, placement and behavior required by downstream applications. Follow the component/subcomponent model in NVIDIA's Factory-Level USD Structuring guide. Apply the relevant parts of that model; a static asset does not need new animation or physics.

Inputs

Required: the source USD stage. When no workload is specified, use factory layout planning and visualization and record that assumption in the request/report. Explicit workload and preservation requirements take precedence. Optional: an output workspace, preservation requirements, physical error budget, existing library indexes and recorded runtime evidence. Use values from the current user request; reuse recorded values only while they remain applicable. Follow setup when no output path is supplied.

Prerequisites

Verify the selected runtime and required capabilities using setup. Keep its preflight record with the run; installation and remote access are conditional steps described there.

Instructions

  1. Inspect. Establish the workload, preservation requirements and output workspace. Set up progress and dashboard access before assessment. Verify setup and inspect the selected source configuration.

  2. Judge boundaries. Review equipment, service-system sections and architectural elements in the selected configuration, including animation and interiors. Record owners, editable interfaces, equipment categories and optional families using boundary guidance.

  3. Classify and author. Classify accepted assets children before parents. Capture or reuse the original profile before authoring. Prepare reusable definitions, materials and occurrence opinions using asset authoring.

  4. Optimize unique definitions. Run supported native operations concurrently on disjoint scopes with the recorded physical budget.

  5. Publish semantic libraries. Use one writer per category layer and remap consumer references.

  6. Check composition. Check authored ownership, references, bindings, placement, animation and interface accessibility through the written-output checks.

  7. Profile and report. Compare the final consumer with the original baseline under comparable conditions and report measured benefits, completion and operations by asset definition.

sequenceDiagram
    participant A as Agent
    participant T as USD tools
    participant W as Definition workers
    participant L as Library publisher
    participant D as Read-only progress dashboard
    Note over A,L: One compact progress state also renders text progress
    T-->>D: Recorded phase, assessment rounds, counters and decision reasons
    A->>T: Inspect original selected configuration
    T->>T: Collect cached child-to-parent summaries and repetition nominations
    T->>T: Load supplied indexes once and batch authored product clues
    T-->>A: Product review groups, member context, animation and reuse evidence
    loop Until boundaries and interiors are reviewed
        A->>A: Select asset boundaries, then identify required internal prims and properties
        A->>T: Submit boundary decisions with reviewed scope, required edits, category and optional family
        T->>T: Reuse unchanged source evidence, recompute boundary-dependent results
        opt Geometry ownership requires reconstruction
            T->>T: Regroup or native split, remap paths and reassess affected regions
        end
        T-->>A: Remaining candidates and member exceptions
    end
    T->>T: Classify selected child assets before parent assets, confirm reuse
    T->>T: Capture or reuse original baseline profile
    T->>T: Confirm accepted product identities from source and supplied indexes; reconcile complete parent-child groups
    T->>T: Skip worker inputs for confirmed groups; author remaining materials, editable prims and occurrence overrides
    T->>T: Determine merge groups on prepared interiors; preserve selected child assets and required prims
    T->>W: Read-only input USD layers for existing-library matching
    par Independent preparation jobs
        W->>W: Confirm remaining product, exact source or authorized normalized reuse; preserve occurrence placement
        W->>W: Consolidate accepted product or compatible exact/normalized leaf inputs; retain every occurrence
    end
    W-->>T: Confirmed library hits and definitions requiring optimization
    T->>W: Owned geometry prim paths in read-only input layers
    par Independent definition scopes
        W->>W: Remove small meshes when authorized; apply asset representation: reserve merge inputs or fit analytic prims; reduce, merge (native clustering if required), prune, flatten, prune
    end
    W->>L: Geometry outputs and assembly authoring outcomes
    L->>L: Share eligible static whole definitions within current category publication
    L->>L: Share remaining whole meshes; write USD reuse metadata and compact index
    L->>T: Output USD stage with rewritten references and dependencies
    T->>T: Check authored composition, ownership, animation and interfaces
    T->>T: Profile final output USD stage and report results by asset definition
    T-->>A: Measured changes, coverage and unresolved work
    T-->>D: Final verdict and report/library paths

Use the provided tools for traversal, native operations, authoring and checks; the agent supplies engineering judgments. Preserve current variant selections, authored animation, required materials and interfaces. Trust supported USD Optimize operations with valid settings and scopes. Deep geometric comparisons and whole-scene edit trials belong in development tests, not ordinary execution.

Complete when every unique definition has an executed or evidenced unchanged outcome, every asset has justified ownership and structure, and the written consumer passes composition checks. Retain native failures, unresolved judgments and missing required capabilities as incomplete work. Repeat only affected work when evidence changes.

Scope and authorization

  • Diagnosis and validation requests remain read-only. An optimization request authorizes work in a separate output workspace within its stated preservation limits.

  • Never overwrite source layers or inherited libraries without explicit authorization.

  • Reuse authorization already given. Ask only for a missing decision that changes identity, required appearance or a loss budget; explain the affected component and consequence.

  • Report only observed changes. Measure rendering before claiming higher FPS or lower GPU use.

Load only the relevant guidance

RequestRead
Validation onlySetup, then the validation section of operations
Approved operation chainSetup, operations, verification
Existing or persistent asset libraryAdd the library index requirements to the assessment
Missing standalone runtimeInstallation
Remote stageRemote access before the first open
Report from completed evidenceVerification

Use upstream package guidance for selected operation mechanics and proxy workflows. Keep large logs on disk as specified in setup.

Limitations

Convert CAD input with the source converter's workflow and NVIDIA's CAD conversion guidance. Render profiling requires NVIDIA/omniperf or the user's available profiler; USD open and traversal timings alone do not establish rendering improvements.

Troubleshooting

For unavailable imports, operations or remote assets, follow setup. For incomplete execution or failed composition checks, follow verification; retain the failed artifacts and report the missing capability or failed check.

Examples

After runtime preflight, use the verified Python interpreter from setup to inspect a stage:

python scripts/successor_assessment.py inspect --source /data/factory.usdc --workspace /data/factory-review

Review the generated candidates using boundary guidance, fill the generated decision template, then submit it:

python scripts/successor_assessment.py decide --workspace /data/factory-review --decisions /data/factory-review/decisions.json

These commands perform assessment; continue through the instructions above only when review is complete. Run from the skill directory; generated data stays in the workspace.

Output Format

Maintain live progress and editable steering throughout execution.

For end-to-end optimization, provide the written USD assembly, validated report JSON, and generated Markdown and HTML reports. State the runtime, operations actually executed, preservation and coverage results, measured changes, source-write status, and artifact paths. Diagnosis-only work may return a findings summary stating that no optimized stage was written.

Files

scripts/successor_execution.py

#!/usr/bin/env python3
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
"""Compute isolated definitions using the existing native worker and scheduler.

Category publication and composed-consumer verification are separate phases.
Reference children contribute immutable inputs, not artificial compute barriers.

Usage:
    python successor_execution.py MANIFEST DIRECTORY [--max-workers N] [--resume]
    The full customer workflow invokes compute_definitions() from successor_workflow.
Arguments:
    Assessed/authored manifest JSON, output directory, worker limit (default 4),
    and optional resume of unchanged inputs, runtime, parameters and outputs.
Output:
    Writes the batch plan, worker status and compute-results.json in DIRECTORY.
    Publication and composed-consumer verification remain separate workflow steps.
Exit codes:
    0 for passed computation; 1 for incomplete computation or an uncaught error;
    2 for invalid command-line arguments.
"""
from __future__ import annotations

import copy
import importlib.util
import json
import hashlib
import os
import tempfile
from pathlib import Path
import time


def _tuning():
    spec = importlib.util.spec_from_file_location('successor_tuning_helpers', Path(__file__).with_name('usd_tuning.py'))
    module = importlib.util.module_from_spec(spec); spec.loader.exec_module(module)
    return module


def geometry_paths(definition):
    target = definition.get('worker_target', definition)
    return target.get('operation_scope', {}).get('geometry_paths', target.get('owned_geometry', []))


def _assembly_result(definition, request, dependencies, directory, tuning, runner, resume, fingerprint_cache):
    """Publish an unchanged authored assembly without starting USD Optimize."""
    from pxr import Sdf, Usd, UsdUtils
    source = Path(definition['input_layer']).resolve()
    output = Path(definition['output_layer']).resolve()
    target = definition.get('worker_target', definition)
    context = {'request_sha256': hashlib.sha256(json.dumps(request, sort_keys=True).encode()).hexdigest(),
               'target_sha256': hashlib.sha256(json.dumps(target, sort_keys=True).encode()).hexdigest()}
    receipt = directory/'assemblies'/(hashlib.sha256(definition['id'].encode()).hexdigest()+'.json')
    files = sorted(set(dependencies) | {str(source), str(output), str(Path(__file__).resolve())})
    def fingerprints():
        values = runner._file_hashes(files, fingerprint_cache)
        return dict(values) if values is not None else None
    if resume and receipt.is_file():
        previous = json.loads(receipt.read_text())
        expected = previous.get('verification', {}).get('evidence_fingerprint', {}).get('files')
        if (previous.get('verification_context') == context and expected
                and previous.get('assessment', {}).get('complete') and expected == fingerprints()):
            return previous
    layer = Sdf.Layer.FindOrOpen(str(source))
    copied = Sdf.Layer.CreateAnonymous('assembly.usda')
    copied.TransferContent(layer)
    UsdUtils.ModifyAssetPaths(copied, lambda asset: Sdf.ComputeAssetPathRelativeToLayer(layer, asset))
    output.parent.mkdir(parents=True, exist_ok=True)
    handle, filename = tempfile.mkstemp(prefix=output.stem+'.pending-', suffix='.usdc', dir=output.parent)
    os.close(handle)
    pending = Path(filename)
    try:
        if not copied.Export(str(pending)):
            raise ValueError('assembly export failed: '+definition['id'])
        written = Usd.Stage.Open(str(pending))
        if not written or written.GetCompositionErrors():
            raise ValueError('authored assembly output does not compose: '+definition['id'])
        os.replace(pending, output)
    finally:
        pending.unlink(missing_ok=True)
    empty = {'meshes': 0, 'vertices': 0, 'faces': 0, 'analytic_primitives': 0, 'array_bytes': 0}
    worker = tuning.helper('assembly_category_assessment', 'usd-optimize-run-operations/scripts/native_worker.py')
    _, categories = worker.category_selection(target, request, False)
    applicability = {'operation': 'geometry applicability', 'status': 'not_applicable',
                     'reason': 'Definition owns no geometry; retained child assets have separate results.',
                     'evidence': {'geometry_counts': empty, 'child_definitions': target.get('children', [])}}
    decisions = worker.finish_categories(categories, [], [])
    result = {'definition_id': definition['id'], 'disposition': 'incomplete' if decisions else 'verified_unchanged',
              'work_type': 'assembly_authoring', 'before': empty, 'after': dict(empty),
              'operations': [], 'path_map': {}, 'consumed_geometry_paths': [],
              'assessment': {'complete': not decisions, 'operations': [applicability], 'categories': categories,
                             'decisions_required': decisions, 'reason': 'Definition owns no geometry; authored composition retained.'},
              'verification_context': context,
              'verification': {'passed': True, 'method': 'authored_assembly_composition',
                               'independent_geometry_proof': False,
                               'checks': [{'name': 'written composition', 'passed': True}],
                               'evidence_fingerprint': {'files': fingerprints()}}}
    if result['verification']['evidence_fingerprint']['files'] is None:
        raise ValueError('cannot fingerprint authored assembly output')
    tuning.write(receipt, result)
    return result


def _batch_small_targets(plan, definitions, directory, max_workers, tuning, resume):
    """Amortize worker startup for small independent layers, keeping each writer."""
    targets = plan['targets']
    depended_on = {identifier for target in targets for identifier in target['depends_on']}
    by_id = {definition['id']: definition for definition in definitions}
    small = [target for target in targets if not target['depends_on'] and target['id'] not in depended_on
             and all(len(geometry_paths(by_id[identifier])) <= 16
                     and Path(by_id[identifier]['input_layer']).stat().st_size <= 256 * 1024
                     for identifier in target['definition_ids'])]
    # Keep all available workers useful. A batch holds at most four distinct
    # layers; larger scopes and dependency chains retain their original jobs.
    size = min(4, (len(small) + max_workers - 1) // max_workers)
    if size < 2:
        return
    selected = {target['id'] for target in small}
    result = [target for target in targets if target['id'] not in selected]
    for offset in range(0, len(small), size):
        members = small[offset:offset + size]
        if len(members) == 1:
            result.extend(members)
            continue
        identifier = 'batch-' + hashlib.sha256('|'.join(t['id'] for t in members).encode()).hexdigest()[:16]
        job_path = directory/'jobs'/(identifier+'.json')
        summary = directory/'jobs'/(identifier+'.result.json')
        jobs = [{'job': json.loads(Path(t['command'][3]).read_text()), 'summary_path': t['summary_path'], 'target': t}
                for t in members]
        tuning.write(job_path, {'jobs': jobs, 'resume': resume})
        target = copy.deepcopy(members[0])
        target.update(id=identifier, definition_ids=[i for t in members for i in t['definition_ids']],
                      command=[target['command'][0], target['command'][1], '--job', str(job_path), '--summary', str(summary)],
                      summary_path=str(summary), log_path=str(directory/'jobs'/(identifier+'.log')),
                      timeout_sec=sum(t['timeout_sec'] for t in members),
                      input_files=sorted({str(job_path)} | {p for t in members for p in t['input_files']}),
                      runtime_files=sorted({p for t in members for p in t['runtime_files']}),
                      output_files=sorted({str(summary)} | {p for t in members for p in t['output_files']}))
        result.append(target)
    plan['targets'] = result


def compute_definitions(manifest, directory, max_workers=4, resume=False, on_progress=None):
    """Optimize owned geometry and retain assembly coverage without native jobs.

    The authored manifest must opt into successor_policy and provide disjoint
    input/output layers. Only compute_requires creates scheduling dependencies.
    Native results and untouched-input checks gate success, not worker exit alone.
    """
    from pxr import Usd
    started = time.monotonic()
    if manifest.get('assessment_phase') == 'boundary_review':
        raise ValueError('Complete detailed assessment before computation')
    if not manifest.get('request', {}).get('successor_policy'):
        raise ValueError('successor_policy must be enabled before authoring')
    if isinstance(max_workers, bool) or not isinstance(max_workers, int) or max_workers < 1:
        raise ValueError('max_workers must be a positive integer')
    definitions = manifest.get('definitions', [])
    if not definitions:
        raise ValueError('no authored definitions to execute')
    ids = {definition['id'] for definition in definitions}
    if len(ids) != len(definitions):
        raise ValueError('definition ids must be unique')
    inputs = [str(Path(d['input_layer']).resolve()) for d in definitions]
    outputs = [str(Path(d['output_layer']).resolve()) for d in definitions]
    if len(set(inputs)) != len(inputs) or len(set(outputs)) != len(outputs) or set(inputs) & set(outputs):
        raise ValueError('successor computation requires distinct immutable inputs and one output writer per definition')
    directory = Path(directory).resolve(); directory.mkdir(parents=True, exist_ok=True)
    tuning = _tuning()
    working = copy.deepcopy(manifest)
    working.setdefault('request', {})['material_source_paths'] = copy.deepcopy(manifest.get('material_source_paths', {}))
    dependencies = {}
    for definition in working['definitions']:
        requires = definition.get('compute_requires', [])
        if not isinstance(requires, list) or any(identifier not in ids or identifier == definition['id'] for identifier in requires):
            raise ValueError('compute_requires must name other known definitions')
        stage = Usd.Stage.Open(definition['input_layer'])
        if not stage or stage.GetCompositionErrors():
            raise ValueError('immutable definition input does not compose: ' + definition['id'])
        layers = {str(Path(layer.realPath).resolve()) for layer in stage.GetUsedLayers() if layer.realPath}
        if layers & set(outputs):
            raise ValueError('working references must target immutable inputs rather than compute outputs')
        dependencies[definition['id']] = layers
        # Reuse the scheduler-plan builder's dependency mechanism while leaving
        # worker_target and the caller's structural children untouched.
        definition['children'] = requires
    # Explicit compute dependencies remain valid through geometry-free assemblies.
    by_id = {definition['id']: definition for definition in working['definitions']}
    native_ids = {identifier for identifier, definition in by_id.items() if geometry_paths(definition)}
    resolved, visiting = {}, set()
    def native_requirements(identifier):
        if identifier in visiting:
            raise ValueError('compute_requires dependency cycle')
        if identifier in resolved:
            return resolved[identifier]
        visiting.add(identifier)
        result = set()
        for child in by_id[identifier]['children']:
            result.update(native_requirements(child))
            if child in native_ids:
                result.add(child)
        visiting.remove(identifier)
        resolved[identifier] = result
        return result
    for identifier in by_id:
        native_requirements(identifier)
    assemblies = [definition for definition in working['definitions'] if definition['id'] not in native_ids]
    working['definitions'] = [definition for definition in working['definitions'] if definition['id'] in native_ids]
    for definition in working['definitions']:
        definition['children'] = sorted(resolved[definition['id']])
    tuning.record_numerical_runtime(directory, manifest.get('request', {}))
    plan = tuning.batch_plan(working, directory)
    plan['run_id'] = 'successor-definition-compute'
    plan['phase'] = 'definition_computation'
    for target in plan['targets']:
        definition_id = target['definition_ids'][0]
        target['input_files'] = sorted(set(target['input_files']) | dependencies[definition_id])
        target['runtime_files'] = sorted(set(target['runtime_files']) | {
            str(Path(__file__).resolve()), str(Path(tuning.__file__).resolve()),
            str(Path(__file__).resolve().with_name('animation_context.py'))})
    _batch_small_targets(plan, working['definitions'], directory, max_workers, tuning, resume)
    tuning.write(directory/'batch-plan.json', plan)
    # The existing scheduler validates dependency cycles and verified-result
    # requirements before dispatching any worker process.
    runner = tuning.helper('successor_batch_scheduler', 'usd-optimize-run-operations/scripts/run_batch.py')
    immutable_files = sorted(set(inputs).union(*dependencies.values()))
    fingerprint_cache = runner._FingerprintCache()
    before = runner._file_hashes(immutable_files, fingerprint_cache)
    if before is None:
        raise ValueError('cannot fingerprint immutable definition inputs and dependencies')
    assembly_rows = [_assembly_result(definition, working['request'], dependencies[definition['id']],
                                     directory, tuning, runner, resume, fingerprint_cache) for definition in assemblies]
    prepared = time.monotonic()
    if on_progress:
        on_progress('definition_compute', activity='Run native geometry jobs',
                    definition_count=len(definitions), assembly_definition_count=len(assemblies),
                    native_definition_count=len(native_ids), native_job_count=len(plan['targets']))
    status = runner.BatchScheduler(plan, directory/'status.json', max_workers=max_workers, resume=resume).run()
    rows = assembly_rows + [row for target in status.get('targets', []) for row in target.get('definition_results', [])]
    untouched = before == runner._file_hashes(immutable_files)
    returned_ids = [row.get('definition_id') for row in rows]
    passed = (all(target['state'] == 'done' for target in status.get('targets', []))
              and all(row.get('assessment', {}).get('complete') for row in rows)
              and set(returned_ids) == ids and len(returned_ids) == len(ids) and untouched)
    result = {'schema_version': 1, 'phase': 'definition_computation', 'status': 'verified' if passed else 'incomplete',
              'passed': passed, 'definition_results': rows, 'immutable_inputs_unchanged': untouched,
              'definition_count': len(definitions), 'assembly_definition_count': len(assemblies),
              'native_job_count': len(plan['targets']), 'native_definition_count': len(native_ids),
              'scheduler': status, 'elapsed_seconds': time.monotonic()-started,
              'preparation_seconds': prepared-started, 'immutable_files': immutable_files,
              'publication_required': True, 'composed_consumer_verification_required': True}
    tuning.write(directory/'compute-results.json', result)
    return result


def main():
    import argparse
    parser = argparse.ArgumentParser(description=__doc__)
    parser.add_argument('manifest'); parser.add_argument('directory')
    parser.add_argument('--max-workers', type=int, default=4); parser.add_argument('--resume', action='store_true')
    args = parser.parse_args()
    result = compute_definitions(json.loads(Path(args.manifest).read_text()), args.directory, args.max_workers, args.resume)
    return 0 if result['passed'] else 1


if __name__ == '__main__':
    raise SystemExit(main())

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs Python, Needs Node.js

The author says: Requires a verified standalone Usd Optimize/OpenUSD runtime for operations, usd-validation-nvidia for supported checks, and a writable output workspace. Remote assets require a working resolver. Render profiling is an external handoff.

Security

What our scanner noticed· Medium risk

  • Large base64-encoded blobs
  • Scripts that your agent may run

This skill includes scripts that your agent may run. Read them before you use it.

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Created by
NVIDIA Omniverse
Publisher
NVIDIA (Official)
Source
NVIDIA/skills · skills/omniverse-usd-performance-tuning · commit fce3cca
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE-APACHE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by NVIDIA Omniverse or NVIDIA.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download omniverse-usd-performance-tuning.zip