Repository navigation
obs-gpu-status: Move the frame-time window into Rust and flag API-name adapters (#943) - #960
Merged
Merged
Conversation
zackees
enabled auto-merge
October 16, 2026 01:52
…e adapters (GREEN) FrameWindow keeps the last 15 non-zero one-second samples; the frontend only calls obs_gpu_status_sample() each second, and obs_gpu_status_report() reads the window. The JSON's adapterIsApiName is true when the frontend passed gs_get_device_name()'s API name, and the Tier 4 GPU check requires it to be false. Fixes #943
zackees
force-pushed
the
test/943-frame-window
branch
from
October 16, 2026 02:21
fb84f0c to
1058a4e
Compare
This was referenced Oct 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #943 (part of #939).
The frontend half of the GPU light had no automated tests. That is how llvmpipe showed green (#929).
Change
FrameWindow(Rust, Tier 1 tested): the last 15 non-zero one-second samples, andstats()gives their median. It replaces the frontend'sstd::deque+ mutex.obs_gpu_status_sample(frame_ns)is called once a second, andobs_gpu_status_report(adapter, interval_ns, state)reads the window.GpuStatus.cppshrinks to adapter reading plus these two calls.adapterIsApiNameinGetStats.gpuAcceleration: true when the adapter isOpenGL,Direct3D 11orMetal(the frontend failed to read the real one). The Tier 4 GPU check (ci: Run the Tier 4 GPU acceleration check against the Rust libobs Ubuntu build #940) now requires it to befalse. ci: Smoke-test the GPU status light on Windows and macOS runners #941's packaged smoke tests reject API names on Windows and macOS.RED → GREEN
Add failing tests for FrameWindow and the API-name flag): 4 tests fail ontodo!(), covering keeping the last 15, skipping 0, the 5-sample minimum, and the API-name flag.obs-gpu-statustests pass, including a C-ABI test that samples a sustained overrun (red) and then one slow second among fast ones (green). Clippy is clean.GpuStatus.cppcompiles cleanly (g++ -fsyntax-only -Wallagainst Qt 6.11). The full app build runs in the release gate. I did not addci-full, to keep PR CI light while the queue is busy.