Skip to content

perf(routing): defer AV1 capability probing until needed - #708

Merged
superuser404notfound merged 1 commit into
superuser404notfound:mainfrom
yucelokan:codex/av1-probe-on-demand
Oct 7, 2026
Merged

superuser404notfound merged 1 commit into
superuser404notfound:mainfrom
yucelokan:codex/av1-probe-on-demand

Conversation

@yucelokan

@yucelokan yucelokan commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Avoid initializing the supplemental AV1 decoder when loading unrelated codecs. The routing policy now evaluates AV1 hardware availability only in its AV1 branch.

What changed

  • Make the internal capability argument lazy without changing route decisions or public API.
  • Cover non-AV1 probe avoidance and one evaluation for AV1 in the existing routing suite.
  • Update the changelog and routing documentation.

Test plan

  • Device / OS: Apple M1 Pro Mac, macOS 27.0.1; Xcode 27.0 (27A266a), Swift 6.4.

  • Source media: routing-level codec inputs (H.264, HEVC, AV1, VP9, MPEG-2 and audio-only); this test uses an instrumented capability probe, not decoded media.

  • Result: swift test --jobs 4 --filter 'VideoRoutingPolicyTests|PublicAPIDocumentationTests|DocumentedConstantsTests' passed: 30 routing tests and 19 documentation/constant tests. python3 Scripts/check-doc-links.py and git diff --check passed. No platform floor or dependency changes.

  • Downstream experience: the equivalent caller-side guard already ships in WUW’s App Store release and has been exercised on physical iPhone and Apple TV during live/VOD use. This PR moves that guard into the common routing policy; its isolated upstream-based revision was validated locally on macOS, not reinstalled on those devices.

  • Independent build verification: swift build --jobs 4 passed at this PR's exact commit, including the library, CLI and compiled examples.

Checklist

  • CHANGELOG.md updated
  • Commit messages follow Conventional Commits (feat(...), fix(...), chore(...))
  • The fix lives in the engine, not in a host-side workaround
  • Public API changes are intentional and documented (no public API change)

@superuser404notfound
superuser404notfound merged commit 6c2ec70 into superuser404notfound:main Oct 7, 2026
@superuser404notfound

Copy link
Copy Markdown
Owner

Thanks, merged. Small and well scoped: the probe is a process-wide static let, so this does not change any route, but a session that never meets AV1 now never registers the supplemental decoder at all, and the routing test pins that. It ships with the next engine release.

@superuser404notfound

Copy link
Copy Markdown
Owner

Released in 7.29.0.

yucelokan added a commit to yucelokan/AetherEngine that referenced this pull request Oct 13, 2026
Merge upstream main through the post-release superuser404notfound#748 integration, including maintainer follow-ups to superuser404notfound#708–superuser404notfound#717 and superuser404notfound#745–superuser404notfound#748. Runtime sources and tests match upstream; retain only fork provenance and GPL text. Full engine suite, strict-pool replay/recovery/origin tests and iOS/tvOS library builds passed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants