Repository navigation
obs-graphics: port timer-range dispatch to Rust - #4595
Merged
Merged
Conversation
zackees
enabled auto-merge
November 10, 2026 19:30
zackees
force-pushed
the
port/4562-gs-timer-range
branch
from
November 10, 2026 19:58
ffd2e68 to
ffc892f
Compare
This was referenced Nov 13, 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 #4562. Refs #4561; extraction prerequisite PR #4565 is merged. Timer-dispatch dependency #4557 has merged.
Ports timer-range destroy/begin/end/get_data to safe Rust orchestration, thin ABI shims and real private context/backend adapters. Preserves context-before-NULL precedence, silent NULL commands, exact diagnostics, disjoint-before-frequency guards and get_data's lack of range validation. Keeps exact pointer forwarding, synchronous single dispatch, repeated/out-of-order calls, discarded begin/end boolean results, backend-only destruction and independent output writes regardless of get_data's boolean. Original four C bodies remain byte-identical in the reference-only group. Real standalone Rust-static adapter support is included.
Current-master landing validation: RED c07ce8f fails all five focused timer-range tests at the stubs (exit 101); GREEN ffd2e68 passes all five (exit 0). Native-build obs-tests-app passes 275 top-level contracts plus child replays, and build-group checks pass 10. The single requested
SOLDR_PORCELAIN=0 ./lintinvocation passes (exit 0); whitespace checks pass. Logs are in .worker-pool/land-4562/{red,green,native-build,build-groups,lint}.log.Original RED b6742a4: all five safe-core/original-C differential tests fail at stubs, exit 101. Original GREEN 9946760: combined timer/range tests pass 10; inverting the backend result fails differential parity, then restored GREEN passes. Replayed RED 29789df and GREEN 4cf3855 preserve that pair with integration-context-only range-diff changes. Rebased-head timer-range selection passes five tests; final single lint passes, exit 0, lane lint: ok (239.1s), and whitespace checks pass.
Original validation: unchanged test_timer_dispatch and test_timer_range_dispatch each pass three times per hybrid/C-reference library, loader paths verified; exports match at 1,767 symbols. Native-build category passes 275 top-level tests plus two child replays; build groups pass 10 and ported-source checks four. These Tier 2 checks were not rerun after rebase. Refreshed #4557 separately passes five timer tests, 275 native contracts plus child observations and 10 build-group checks.
Test cost: original 25 debug range-module replays, longest combined wall time 0.004953 s; peak child RSS 14,620 KiB; no test-owned threads or generated variable-sized allocations. Existing graphics category binary only. No full workspace/Tier 2/standalone-static sweep, Windows/macOS or hosted completion claimed. Tier 4 does not apply. No intentional behavior change or existing C test/public header edits.
Evidence: .worker-pool/r4557-s4562/response.md and .worker-pool/rebase-4557b/response.md with their RED, mutation, focused Tier 2, cost and final lint artifacts. Landing replay is based on master d8d4421; range-diff confirms the two own commits are unchanged. PR CI remains the merge gate.