Repository navigation
frontend: Fix the GPU light reading "OpenGL" as the adapter, and the startup red flash (#846) - #929
Merged
Merged
Conversation
A single slow second after launch turned the light red until the next refresh. The light should judge the median of one-second samples, with at least MIN_FRAME_SAMPLES of them. The C ABI now takes the samples. Refs #846
…REEN)
gs_get_device_name() names the API ("OpenGL", "Direct3D 11"), not the
adapter, so llvmpipe showed green: the Tier 4 check failed on a real
NixOS machine forced onto llvmpipe. Read GL_VENDOR/GL_RENDERER on OpenGL
and the active DXGI adapter on Direct3D 11 instead.
The light also flashed red for one refresh after launch, judging a
single slow second. Sample libobs' one-second average every second and
classify the median of the last 15 (at least 5).
Refs #846
…atform facade median() is a free function with its own unit tests (odd and even counts, rounding, overflow at u64::MAX, input order); the even case uses u64::midpoint. GetGlGetStringProc() lives in platform-x11.cpp, platform-windows.cpp and platform-osx.mm, so GpuStatus.cpp gains no platform #ifdefs (ci/platform_ifdef_ratchet.py). Refs #846
zackees
enabled auto-merge
October 16, 2026 00:30
It landed inside the FreeBSD-only include block; the AppImage build failed with dlopen not declared. Refs #846
Member
Author
|
Tier 4 GREEN on the same NixOS machine (RTX 3060 + RTX 2080 Ti), with this branch's AppImage from run 38830318777, wrapped with
The AppImage build passed, as did its distro tests (Ubuntu 22.04, Debian trixie, Fedora, Arch). Green on real hardware still needs a manual check in a desktop session. |
This was referenced Oct 16, 2026
This was referenced Oct 16, 2026
This was referenced Oct 16, 2026
chriscoveries
pushed a commit
to chriscoveries/obsrust-fork
that referenced
this pull request
Oct 16, 2026
…e adapters (obs-rust#943) (obs-rust#960) * obs-gpu-status: Add failing tests for FrameWindow and the API-name flag (RED) The one-second sampler lived only in frontend C++ with no test, and a frontend that passes "OpenGL" as the adapter went unnoticed (obs-rust#929). Refs obs-rust#943 * obs-gpu-status: Move the frame-time window into Rust and flag API-name 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 obs-rust#943
chriscoveries
pushed a commit
to chriscoveries/obsrust-fork
that referenced
this pull request
Oct 16, 2026
…-rust#990) obs-rust#846 closed with unit tests, Tier 2 and full builds green while the light it added called llvmpipe green; its Tier 4 test had never run (obs-rust#929). The worker skill, coordination.md and the PR template now ask for one real run (Tier 4 or by hand) before Fixes #N on UI, protocol output or logging changes. Fixes obs-rust#948
zackees
added a commit
that referenced
this pull request
Oct 16, 2026
…uild (#940) (#952) * ci: Run the Tier 4 GPU acceleration check on the Rust libobs Ubuntu build The GPU status light shipped calling llvmpipe green (#846, fixed in #929) because Tier 4 never ran in CI. run_tier4.py --only gpu runs just that group; the Ubuntu (Rust libobs) job installs the build into /usr and runs it under Xvfb, where OBS renders on llvmpipe. Fixes #940 * ci: Run the Tier 4 GPU check after packaging and uploads Review finding: the check installs the build into /usr, and running it before Package OBS Studio could let CPack/dpkg-shlibdeps see the system-wide libobs. Refs #940
zackees
added a commit
that referenced
this pull request
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.
Two bugs found by trying the AppImage on a real NixOS machine (RTX 3060):
gs_get_device_name()names the API (OpenGL,Direct3D 11), not the adapter, so the classifier never sawllvmpipe. The log saidGPU acceleration: green: Rendering on OpenGL.The frontend now readsGL_VENDOR/GL_RENDERERon OpenGL, throughGetGlGetStringProc()in the platform facade, and the active adapter fromgs_enum_adapterson Direct3D 11.FrameStats::from_samplesjudges the median of the last 15 samples, needing at least 5.RED → GREEN
test_gpu_acceleration_softwareagainst the installed AppImage of master e747db4 withLIBGL_ALWAYS_SOFTWARE=1. The log saidLoading up OpenGL on adapter Mesa llvmpipe, yetGetStats.gpuAccelerationwas{"adapter":"OpenGL","state":"green"}and no startup warning appeared. The check failed.todo!().median()with its own tests.GpuStatus.cppcompiles cleanly with-Wallagainst Qt 6.11, andci/platform_ifdef_ratchet.pypasses.Refs #846