Przejdź do treści
Biblioteka skilli
Programowanie · Analiza

perf-tuning

/perf-tuning

Rozwiązuje typowe problemy wydajności Kit, Isaac Sim i Isaac Lab ustawieniami: zawieszenia PresentFrame, tryb headless, wiele GPU, DLSS, PhysX, presety RTX i narzut fsWatcher.

Repozytorium
omniperf ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
09.09.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 09.09.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Rozwiązuje typowe problemy wydajności Kit, Isaac Sim i Isaac Lab ustawieniami: zawieszenia PresentFrame, tryb headless, wiele GPU, DLSS, PhysX, presety RTX i narzut fsWatcher.

Wyzwalacze z opisu

why is it slow
Oryginalny opis (EN)

Resolve common Kit/Isaac Sim/Isaac Lab performance issues using specific settings and configuration changes. Covers PresentFrame stalls, resolveSamplerFeedback, headless mode, multi-GPU tradeoffs, DLSS/DLSS-G, PhysX tuning, RTX presets (isaaclab_performance/balanced/quality), viewport gizmos, HydraEngine waitIdle, fsWatcher overhead, and CPU governor. Use when profiling data shows a specific bottleneck and you need the fix, when someone asks "why is it slow" and you have Tracy/nsys evidence, or when tuning RTX settings for GPU-bound workloads. NOT for: initial triage (use diagnose-perf), captu

Jak działa

  1. PresentFrame is Abnormally Slow
  2. resolveSamplerFeedback is Abnormally Slow
  3. Headless Mode (3–4 ms GPU savings)
  4. Multi-Camera Render Count Verification
  5. PhysX Tuning
  6. Extension Change Detection (fsWatcher)
  7. Viewport Gizmo Overhead
  8. DLSS-G (Frame Generation) — Know What You're Measuring
  9. HydraEngine waitIdle
  10. Multi-GPU — Not Always Faster
Sekcje z nagłówków SKILL.md, w oryginale · 221 linii, 886 słów
Podgląd SKILL.md
---
name: perf-tuning
description: 'Resolve common Kit/Isaac Sim/Isaac Lab performance issues using specific settings and configuration changes. Covers PresentFrame stalls, resolveSamplerFeedback, headless mode, multi-GPU tradeoffs, DLSS/DLSS-G, PhysX tuning, RTX presets (isaaclab_performance/balanced/quality), viewport gizmos, HydraEngine waitIdle, fsWatcher overhead, and CPU governor. Use when profiling data shows a specific bottleneck and you need the fix, when someone asks "why is it slow" and you have Tracy/nsys evidence, or when tuning RTX settings for GPU-bound workloads. NOT for: initial triage (use diagnose-perf), capturing profiles (use profiling), or analyzing traces (use nsys-analyze).'
---

# Performance Tuning for Kit / Isaac Sim / Isaac Lab

Specific fixes for performance issues identified through profiling.
Prerequisite: you should already know *where* the bottleneck is (from `diagnose-perf`, `profiling`, or `nsys-analyze` skills).

## PresentFrame is Abnormally Slow

Two causes:

### GPU Backpressure
GPU work exceeds frame budget → CPU waits for swapchain buffer.

**Verify:** Enable GPU zones in Tracy and check if GPU frametime > CPU frametime.
```bash
--/profiler/gpu/tracyInject/enabled=true --/profiler/gpu=true --/rtx/addTileGpuAnnotations=true
```

**Fix:** Reduce GPU workload — see [RTX Tuning](#rtx-tuning-when-gpu-bound) below.

### VNC / Remote Desktop
Virtual framebuffer causes driver present timing issues.

**Fix:** Use a physical monitor or run in headless mode.

## resolveSamplerFeedback is Abnormally Slow

Texture Streaming bug causes per-frame thread waits proportional to RenderProduct count.

**Fix:** Disable Texture Streaming:
```bash
--/rtx-transient/resourcemanager/enableTextureStreaming=false
```

**Impact:** ~6.72 ms saved per frame (measured). VRAM usage may increase — verify headroom.

## Headless Mode (3–4 ms GPU savings)

For simulation-only workloads (RL training, SDG, automated benchmarks):

```python
# Isaac Sim via SimulationApp
simulation_app = SimulationApp({"headless": True, "disable_viewport_updates": True})
```

```bash
# Kit args
--no-window --/app/window/hideUi=True
```

Also disable viewport updates in Python:
```python
from omni.kit.viewport.utility import get_active_viewport
get_active_viewport().updates_enabled = False
```

## Multi-Camera Render Count Verification

Always check Tracy GPU zones to verify only intended cameras are rendering:
- Count `extrt/rtx/rtaTexturesMC_*` (camera textures) and `t_viewport_ViewportTexture_*` (viewport textures)
- Verify resolution in zone names matches intent (e.g., `rtaTexturesMC_3_RP_1920x1080`)
- In headless mode, check that unnecessary viewport textures aren't rendering in background

### Common Multi-Camera Fixes

- Remove per-camera viewports; keep render products only.
- Replace separate camera render products with `TiledCameraSensor` when the workflow supports it.
- Destroy or disable the default viewport after sensor setup in headless benchmark/simulation runs.

```python
from isaacsim.sensors.experimental.camera import TiledCameraSensor

sensor = TiledCameraSensor(
    camera_paths,          # List[str]
    resolution=(H, W),     # Height, Width
    annotators=["rgb"],
)
data, info = sensor.get_data("rgb")
```

## PhysX Tuning

### Expose Full PhysX Detail
Default `profilerMask=1` hides internal PhysX zones. To diagnose PhysX bottlenecks, remove the mask arg (defaults to ALL).

### Key Settings

| Setting | Effect |
|---------|--------|
| `--/physics/suppressReadback=true` | Suppress GPU→CPU readback |
| `--/physics/updateToUsd=false` | Skip physics→USD writeback (only if not reading state from USD) |
| `--/physics/disableContactProcessing=true` | Skip contact event callbacks (if no subscriber needs them) |

### Async Physics (USD Schema)

```python
from pxr import UsdPhysics, PhysxSchema

stage = omni.usd.get_context().get_stage()
for prim in stage.Traverse():
    if prim.IsA(UsdPhysics.Scene):
        api = PhysxSchema.PhysxSceneAPI.Apply(prim)
        api.CreateUpdateTypeAttr().Set(PhysxSchema.Tokens.asynchronous)
```

Applicable when previous-frame physics results are acceptable (RL training, SDG).

### Solver Type
The default solver is PGS. The profiling guide calls out switching `PhysxSceneAPI.solverType` to TGS as a scenario-dependent tuning option; verify with a WARM benchmark before keeping it.

```python
api = PhysxSchema.PhysxSceneAPI.Apply(physics_scene_prim)
api.CreateSolverTypeAttr().Set("TGS")
```

## Extension Change Detection (fsWatcher)

~0.1 ms/frame overhead for hot-reload file monitoring. Disable for benchmarks:
```bash
--/app/extensions/fsWatcherEnabled=false
```

## Viewport Gizmo Overhead

Gizmos (manipulators, grid, selection outlines) cause significant CPU overhead in scenes with many objects.

```bash
--/persistent/app/viewport/displayOptions=0
--/persistent/app/viewport/gizmo/enabled=false
```

## DLSS-G (Frame Generation) — Know What You're Measuring

DLSS-G inserts AI sub-frames between real frames:
- **Viewport HUD FPS** includes sub-frames → inflated by 2–4x
- **Tracy/benchmark frametime FPS** = actual rendering FPS

| GPU Gen | Sub-frame Multiplier |
|---------|---------------------|
| Ada (RTX 40) | 2x |
| Blackwell (RTX 50) | 3–4x |

**Rule:** DLSS-G is for viewport display only. Disable for simulation/benchmarks:
```bash
--/rtx-transient/dlssg/enabled=false  # default is off, but verify
```

## HydraEngine waitIdle

When `/app/hydraEngine/waitIdle=true` (default), main thread blocks every frame until GPU finishes.

```bash
--/app/hydraEngine/waitIdle=false  # allow CPU-GPU pipelining
```

Safe for rendering-only workloads. Keep `true` if reading GPU results same-frame (physics readback, synchronous sensors).

## Multi-GPU — Not Always Faster

Multi-GPU adds CPU overhead (job distribution, per-GPU setup, data gathering). Only effective when GPU is the clear bottleneck.

| Scenario | Recommendation |
|----------|---------------|
| High-res (4K) × many cameras (4–8) | Multi-GPU effective |
| Low-res (1080p) × few cameras (1–2) | Single GPU faster |
| CPU-bottlenecked | Adding GPUs = pointless |

**Always verify GPU-bound with Tracy/nsys before adding GPUs.**

## CPU Governor

```bash
# Check
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor | sort | uniq -c
# Fix
echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
```

Real impact: `powersave` → `performance` saved ~4 ms/frame in measured cases.

## RTX Tuning When GPU-Bound

### Recommended Approach
Start from an IsaacLab preset, then selectively re-enable features you need.

### IsaacLab Presets (ChessRTX path-traced, RTX PRO 6000 Blackwell)

| Preset | FPS | Δ vs default |
|--------|-----|-------------|
| (default) | 51.85 | — |
| `isaaclab_quality` | 70.25 | +35.5% |
| `isaaclab_balanced` | 87.81 | +69.4% |
| `isaaclab_performance` | 111.90 | +115.8% |

### DLSS execMode — Single Biggest Lever

| execMode | Mode | FPS | Δ vs default |
|----------|------|-----|-------------|
| 0 | Performance | 106.24 | +104.9% |
| 1 | Balanced | 87.08 | +68.0% |
| 2 | Quality | 71.42 | +37.7% |

```bash
--/rtx/post/dlss/execMode=0  # always specify 0/1/2 — mode 3 (Auto) broken in headless
```

~91% of `isaaclab_performance`'s gain comes from this single setting.

### Full Preset Parameter Table

For detailed per-parameter comparison across all three presets, see `references/rtx-presets.md`.

### Tuning Checklist

1. Confirm GPU-bound with Tracy/nsys
2. Verify DLSS-G off for simulation (`--/rtx-transient/dlssg/enabled=false`)
3. Set `--/rtx/post/dlss/execMode=0` (biggest single lever)
4. Apply `isaaclab_performance` preset for maximum speed
5. Selectively re-enable visual features as needed
6. Scene-dependent — numbers will vary
Pliki w paczce (2)
  • SKILL.md 8 KB
  • references/rtx-presets.md 2 KB

Wersje

W bazie nie ma innych skilli o nazwie perf-tuning.

Migawka bazy z 13.11.2026 · wersja paczki d92d04142edf (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100diagnose-perf
    Prowadzi wstępny triaż wydajności Isaac Sim i Isaac Lab: ustala kategorię wąskiego gardła (GPU, CPU, VRAM, ładowanie) narzędziami nvidia-smi i systemowymi, bez profilowania.
  • 100profiling
    Zbiera ślady wydajności CPU ChromeTrace, Tracy i Nsight Systems z NVTX dla aplikacji opartych na Kit (Isaac Sim, Isaac Lab): pomiary COLD, WARM i TRACY oraz polecenia nsys.
  • 90Isaac Lab Scene Initializer
    Prowadzi przez tworzenie lub rozszerzanie sceny YAML dla Isaac Lab i Isaac Sim oraz generuje gotowy skrypt *_isaac.py przez isaac_scene_loader.py.
  • 90authoring-dlss-agent-skills
    Utrzymuje i sprawdza pakiet skilli Streamline DLSS: wspólne źródła, listy kontrolne DLSS i Reflex, manifesty i wydania.
  • 100perf-host-optimization
    Profiluje i optymalizuje narzut CPU hosta w TensorRT-LLM przez line_profiler w iteracyjnych rundach profilowania, analizy, optymalizacji i walidacji, gdy wykorzystanie GPU jest niskie.
  • 100nvidia-tensorrt-llm-perf-host-optimization
    Profiluje i optymalizuje narzut hosta i CPU w TensorRT-LLM przez line_profiler, w iteracyjnych rundach analizy i walidacji, gdy wykorzystanie GPU jest niskie.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.