Repository navigation
obs-graphics: port timer dispatch to Rust (#4523) - #4557
Conversation
301cc94 to
acc3915
Compare
acc3915 to
cd5f14b
Compare
|
Rebased onto origin/master 305b7bb, replacing acc3915 with cd5f14b. Conflicts resolved by retaining both oracle/test registrations and master's timer-range C include while removing only the ported timer production include. Range-diff confirms integration-context changes only. Listed HEAD..origin/port/4523-gs-timer before pushing with the explicit old-head lease; remote SHA verified and auto-merge re-armed with --match-head-commit. Focused graphics timer tests: 5 passed. obs-studio-rust obs-tests-app native_build contracts: 277 passed. Build-group checks: 10 passed. git diff --check passed. Evidence: local-test-WjvNwG.log, local-test-mlcpOP.log, explicit app executable replay local-test-6cfizl.log, and local-test-2ErBr3.log under /home/niteris/.clud/tmp/tool-output/local-test-private/. The one requested final lint will run on the stacked #4562 branch, which includes this head; no separate lint invocation here. Hosted validation remains pending. Pool coordinator retains the merge handoff. |
cd5f14b to
3bea818
Compare
Fixes #4523. Extraction prerequisite #4545 has squash-merged. This PR replays only the timer swap's RED/GREEN pair onto master, preserving master's other oracle registrations and production C groups.
What and why
Port gs_timer_destroy, gs_timer_begin, gs_timer_end and gs_timer_get_data through a safe Rust core, thin ABI shims and real private callback/context adapters, with standalone Rust-static adapter support. Preserve context-before-NULL precedence, silent NULL commands, timer-before-ticks diagnostics, untouched rejected outputs, exact pointer forwarding, one synchronous callback, arbitrary command order, backend ownership and backend writes even when returning false. The Rust source-profiler consumer stays unchanged. Original C bodies remain unchanged in their reference-only group.
No intentional behavior differences, user-visible behavior change or new test executable. Existing C tests, public headers, workflows and websocket code are unchanged. Tier 4 is inapplicable.
RED → GREEN and validation
Test cost: original worker's 25 reduced-parity runs of five cases, longest combined wall time 0.06263 s, peak RSS 7,432 KiB, no test-owned threads.
Evidence: .worker-pool/stack-4523/response.md and .worker-pool/publish-swaps/response.md. Tier 2, mutation and cost figures are original-worker evidence, not rebuilt-head reruns. No full Tier 2 sweep, standalone staticlib sweep, Windows/macOS runtime, full workspace execution, new attestation or hosted-CI completion is claimed. PR CI remains the merge gate.
The single rebuilt-head SOLDR_PORCELAIN=0 ./lint invocation passed with exit 0; evidence artifact local-test-eBDhxR.log. Focused Rust command: local-test-kg28QI.log; native_build command: local-test-XcmqT0.log; build-group checks: local-test-7O0NrU.log (artifacts under /home/niteris/.clud/tmp/tool-output/local-test-private/).