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
obs-gpu-status: Windows GPU utilization through PDH GPU Engine counters #1022
Carried over from #1004: measure and record this source's polling cost per sample on real hardware, as #1004 did for NVML (0.68 ms per device vs 87 ms for an nvidia-smi spawn).
Claiming. Plan: Tier 1 parse_pdh_instance (pid_<n>_luid_0x<hi>_0x<lo>_phys_<n>_eng_<n>_engtype_<type>) and pdh_utilization(samples, luid, pid): filter by the render adapter's LUID (from #1198), sum each engine (phys, eng) over processes, report the busiest engine (Task Manager's whole-adapter value), Unavailable when nothing matches; with pid the same for OBS's own share. Then a Windows sampler in src/platform/windows.rs (raw FFI like the DXGI code: PdhOpenQueryW, PdhAddEnglishCounterW(\\GPU Engine(*)\\Utilization Percentage), two PdhCollectQueryData, PdhGetFormattedCounterArrayW), cross-compiled for Windows. The polling-cost measurement needs a Windows host; I'll leave that open if I can't get one.
Triage: a concrete design (PdhAddEnglishCounterW, LUID filter, max over engine types) with RED → GREEN and smoke-test acceptance. The UI decisions are settled by #1004 defaults. The work is already split as the maintainer arranged (backoff follow-up after #1271). P2, size:M.
Correction to my triage above: this is done. #1228 (merged 2026-10-17) added Windows GPU utilization through the PDH GPU Engine counters with the parser/aggregator tests, #1264 the GPU: x% display, #1271 the persistent PDH query, and #1287 the backoff for slow sources the maintainer asked for. If the packaged Windows smoke test (#941) shows a problem, please file it as its own bug.
Activity
zackees commentedon Oct 16, 2026
Carried over from #1004: measure and record this source's polling cost per sample on real hardware, as #1004 did for NVML (0.68 ms per device vs 87 ms for an
nvidia-smispawn).test: obs-gpu-status picks the Windows render GPU by LUID
test: obs-gpu-status picks the Windows render GPU by LUID
obs-gpu-status: Pick the Windows render GPU by LUID (obs-rust#1198)
zackees commentedon Oct 17, 2026
Claiming. Plan: Tier 1
parse_pdh_instance(pid_<n>_luid_0x<hi>_0x<lo>_phys_<n>_eng_<n>_engtype_<type>) andpdh_utilization(samples, luid, pid): filter by the render adapter's LUID (from #1198), sum each engine (phys, eng) over processes, report the busiest engine (Task Manager's whole-adapter value),Unavailablewhen nothing matches; withpidthe same for OBS's own share. Then a Windows sampler insrc/platform/windows.rs(raw FFI like the DXGI code:PdhOpenQueryW,PdhAddEnglishCounterW(\\GPU Engine(*)\\Utilization Percentage), twoPdhCollectQueryData,PdhGetFormattedCounterArrayW), cross-compiled for Windows. The polling-cost measurement needs a Windows host; I'll leave that open if I can't get one.obs-gpu-status: Windows GPU utilization through PDH GPU Engine counters
obs-gpu-status: RED: PDH GPU Engine instance parsing and utilization …
obs-gpu-status: Windows GPU utilization through PDH GPU Engine counters
obs-gpu-status: Windows GPU utilization through PDH GPU Engine counte…
obs-gpu-status: Sample the render GPU's utilization on a thread
obs-gpu-status: Sample the render GPU's utilization on a thread
obs-gpu-status: Sample the render GPU's utilization on a thread
frontend: GPU: x% label replaces the GPU status light text (obs-rust#…
13 remaining items
obs-gpu-status: Windows GPU: x% from PDH GPU Engine counters (obs-rus…
obs-gpu-status: Keep one PDH query open between ticks (RED, Refs obs-…
obs-gpu-status: Keep one PDH query open between ticks (GREEN, Refs ob…
obs-gpu-status: Back off from slow GPU usage sources (obs-rust#1287)
obs-gpu-status: Keep one PDH query open between label ticks (obs-rust…
zackees commentedon Oct 25, 2026
/ready
Triage: a concrete design (
PdhAddEnglishCounterW, LUID filter, max over engine types) with RED → GREEN and smoke-test acceptance. The UI decisions are settled by #1004 defaults. The work is already split as the maintainer arranged (backoff follow-up after #1271). P2, size:M.zackees commentedon Oct 25, 2026
Correction to my triage above: this is done. #1228 (merged 2026-10-17) added Windows GPU utilization through the PDH GPU Engine counters with the parser/aggregator tests, #1264 the
GPU: x%display, #1271 the persistent PDH query, and #1287 the backoff for slow sources the maintainer asked for. If the packaged Windows smoke test (#941) shows a problem, please file it as its own bug.