Skip to content

obs-gpu-status: macOS GPU utilization from IOKit PerformanceStatistics #1026

Closed

Description

@zackees

IOAccelerator → PerformanceStatistics → Device Utilization %. The key is undocumented (unverified on Apple Silicon); hide the readout when the key is missing.

Acceptance

Decisions (defaults from #1004; edit if the maintainer disagrees)

Activity

  1. vpacher commented on Oct 17, 2026

    @vpacher
    Member

    Claiming: #1026

    The key exists on Apple Silicon: on an M1 Max (macOS 26.7.1), AGXAcceleratorG13X has PerformanceStatistics with "Device Utilization %", "Renderer Utilization %" and "Tiler Utilization %".

    Plan (one PR):

    1. RED: a Tier 1 parser device_utilization on a captured PerformanceStatistics dictionary. A missing key or a value over 100 gives Unavailable.
    2. GREEN: the parser, and an IOKit reader in src/platform/macos.rs that finds the IOAccelerator service with the render adapter's registry ID (obs-gpu-status: Pick the macOS render GPU by registry ID #1195) and reads the dictionary. IOKit and CoreFoundation open at run time through libloading, like the existing macOS code.
    3. Wire it into platform::usage_sources() as source iokit, so the GPU: x% label (frontend: GPU: x% readout replaces the GPU status light #1025) shows it.

    Decisions: the headline is Device Utilization % (the issue's key). Renderer and Tiler are parts of the GPU, not the whole. OBS's own share is not shown (#1236: no source gives one that adds up yet). Real check: on this M1 Max under load, then the real app.

    PR today.

  2. added
    claimed
    on Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions