You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
frontend: GPU status runs nvidia-smi (~40 ms) on the startup path #1172
GpuStatus::Init() (after ResetVideo) calls obs_gpu_status_report, whose first call probes the system's GPUs: sysfs plus a nvidia-smi --query-gpu=... subprocess. Measured with timing around the call: 40 ms on the startup path, every launch (2× NVIDIA, KDE Wayland). Later reports reuse the OnceLock.
Fix
Start the probe on a thread at the top of OBSApp::AppInit (obs_gpu_status_prefetch()), half a second before the first report needs it. The cache (DeviceCache in rust/obs-gpu-status) keeps one probe per process: a report that arrives while the prefetch is still probing waits for it instead of probing again. Report contents do not change.
Tier 1: tests/gpu_status/device_cache.rs (RED, then GREEN).
Activity
zackees commentedon Oct 17, 2026
Claiming: branch
fix/gpu-status-prefetch.test: GPU status probes the system's GPUs once and can prefetch them …
frontend: Probe the GPUs for the GPU status on a thread at launch (GR…
docs: Launch-speed results graphic in the README
obs-gpu-status: Read NVIDIA GPU utilization through NVML
obs-gpu-status: NVIDIA GPU utilization through NVML (obs-rust#1233)