Repository navigation
libobs: Characterize and extract graphics timer dispatch - #4545
Merged
Merged
Conversation
zackees
enabled auto-merge
November 10, 2026 11:45
zackees
force-pushed
the
test/extract-gstimer
branch
from
November 10, 2026 12:16
44150f9 to
8e8bc95
Compare
This was referenced Nov 10, 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.
Refs #4522. Follow-up Rust swap: #4523, after this prerequisite lands.
What and why
Characterizes the actual public
gs_timer_destroy,gs_timer_begin,gs_timer_endandgs_timer_get_dataexports with GPU-free fake backend callbacks, then moves only their original bodies verbatim intolibobs/graphics/timer-dispatch.c.hin sorted unity position. Scoped validation macros preserve context-before-NULL precedence, exact diagnostics, silent NULL commands and the timer-before-ticks guards in get_data.The three characterization cases pin rejected-call output preservation, exact pointer forwarding, synchronous single dispatch, repeated/out-of-order commands, backend boolean/output-write combinations including writes on false, boundary tick values and backend-only destruction. The Rust source-profiler consumer is unchanged.
Characterization → extraction
lddconfirmed hybrid and C-reference selection. All four bodies matched the originals byte-for-byte; dynamic exports matched at 1,767 symbols before/after and across libraries.test_source_profiler: all six cases passed three times per library with real OpenGL llvmpipe.SOLDR_PORCELAIN=0 ./lintinvocation passed, exit 0,lane lint: ok (279.7s); clang-format 22.1.3, gersemi 0.25.0 andgit diff --checkpassed.This is the testing-policy characterization/extraction prerequisite. Rust RED/GREEN, Tier 1 and original-C differential Tier 3 remain for #4523. Tier 4 is inapplicable. No full Tier 2 suite, Windows/macOS execution, hosted CI completion or Rust implementation is claimed. No existing C tests, public headers, WebSocket code, workflows, test graph or Rust native-test registry changed. No user-visible behavior change.
Evidence:
.worker-pool/extract-gstimer/response.mdand its before/after, source-profiler and lint artifacts.