Skip to content

obs-graphics: port timer-range dispatch to Rust - #4595

Merged
zackees merged 2 commits into
masterfrom
port/4562-gs-timer-range
Nov 10, 2026
Merged

zackees merged 2 commits into
masterfrom
port/4562-gs-timer-range

Conversation

@zackees

@zackees zackees commented Nov 10, 2026

Copy link
Copy Markdown
Member

Rebuilt on master: #4557 has squash-merged. This branch is now rebuilt on master with only the timer-range RED and GREEN commits.

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 ./lint invocation 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.

@zackees
zackees enabled auto-merge November 10, 2026 19:30
@zackees
zackees force-pushed the port/4562-gs-timer-range branch from ffd2e68 to ffc892f Compare November 10, 2026 19:58
@zackees
zackees added this pull request to the merge queue Nov 10, 2026
Merged via the queue into master with commit 0df73e0 Nov 10, 2026
39 checks passed
@zackees
zackees deleted the port/4562-gs-timer-range branch November 10, 2026 20:39
@obs-rust-project-manager obs-rust-project-manager Bot moved this from Needs fix to Done in obs-rust Multiview Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

rust: Port graphics/timer-range-dispatch.c.h to obs-graphics

1 participant