Skip to content

fix(player): draw ASS subtitles on the video's own clock - #733

Merged
Quick104 merged 4 commits into
mainfrom
fix/ass-subtitle-sign-rendering
Oct 11, 2026
Merged

Quick104 merged 4 commits into
mainfrom
fix/ass-subtitle-sign-rendering

Conversation

@Quick104

@Quick104 Quick104 commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: changes #314 C1, C4; changes #313 C1, C4

Typeset ASS signs lag the picture. A translated label and the mask behind it should track the signage they cover, but on Apple TV they trail the camera by a few frames, so the original text shows through whenever the shot moves. A user reported it on JoJo's Bizarre Adventure S03E17 (inid4c + SFX) and Laid-Back Camp the Movie (neoHEVC).

The overlay sampled a running clock on the main actor every 16 ms, then rendered each sample through SwiftAssRenderer's float pipeline. It showed the result as a SwiftUI image. Signs therefore landed two to four frames late, and a full-screen sign at 4K took longer to render than a frame lasts. This change renders each sign for the exact frame it belongs to, and the video's own clock shows it with that frame.

Approach

  • Presentation on the video clock. ASSOverlayPresenter renders about 0.3 s ahead, at the exact timestamps of the frames AetherEngine reports (setNativeVideoFrameTimeObserver, setSoftwareVideoFrameTimeObserver). It queues each canvas on an AVSampleBufferDisplayLayer whose control timebase is the video's clock: the player item's timebase, or Aether's software synchronizer. Core Animation shows each canvas with its frame, so render time and main-thread load no longer move it. Remote HLS, where Aether reports no frames, spaces frames by the source frame rate.
  • Frame-exact sampling. Libass time is floored to the millisecond, as FFmpeg does. Typesetters put event boundaries between frames, so rounding would show the next frame's sign early.
  • Cheaper rendering. ASSImageCompositor blends libass masks straight into premultiplied BGRA pixel buffers from a pool. Canvases are capped at 1920×1080 pixels, and a 4K output scales them up.
  • Incremental libass. ASSSubtitleRenderer adds cues by Aether cue id and keeps aged-out events for a backward seek. A retracted or changed cue, or the first cues of a held reload, restart the event list without rebuilding libass.
  • Queue upkeep. Only frames whose pixels change are queued. A seek, detected from the clock, refills the queue from the frame on screen. Each selection has a generation that the session sets on the layer before it awaits the presenter, so an outgoing track's canvases never show.

This affects the iOS, tvOS, and macOS players. No server or Android change is needed. Aether's subtitle drain also delivers dense cues late after a seek or at startup. That fix is the stacked pin-bump PR.

Validation

  • Unit tests: the renderer, compositor, frame-schedule, cue-feed, presenter, and media-authorization tests pass on a tvOS simulator, 31 tests. The full SiloTV suite passes on a fresh simulator, 2,644 tests with 0 failures, with this branch's code under chore(deps): take the dense ASS subtitle drain fix from AetherEngine #734's engine pin, which adds no tests. iOS and macOS build.

  • Simulator playback: a synthetic 60 s file at 1080p and 23.976 fps carries about 24,700 frame-timed sign events. Their masks cover red blocks burned into the video, and every frame's red pixels were counted. The share of frames showing red fell from 49.6% on main to 2.2–2.4% with this branch, and to 1.0–1.3% with chore(deps): take the dense ASS subtitle drain fix from AetherEngine #734 as well. The table shows the worst of four runs on this branch's commits:

    Phase Before This PR With chore(deps): take the dense ASS subtitle drain fix from AetherEngine #734
    Slow pan 38.3% 0% 0%
    Fast pan with zoom 87.8% 1.2% 0%
    Hard cuts 20.1% 0.4% 0%
    12 moving signs with wide blur 90.6% 0.1% 0%

    The red frames left with this PR alone are Aether's: the first 1.5 s, and in two of four runs a few single frames whose sign had not arrived. Aether's drain ran about 4 s ahead and decodes at most 512 packets a second, below this file's peak of 620 events a second, so on a busy host it fell behind. With chore(deps): take the dense ASS subtitle drain fix from AetherEngine #734, only the first 0.5 s shows red. Rendering averaged 4.3 to 9.1 ms per frame, with 15.0 ms the slowest single frame, in a Debug build at 1920×1080.

  • Not verified: Aether's native AVPlayer path, because the simulator always plays H.264 through Aether's software path. Unit tests with fake clocks cover the native and remote-HLS clocks. A physical Apple TV and the reporter's files are also unverified.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-apple/pr-733/

Surface and build: SiloTV Debug on the tvOS simulator, with main at bf4f7156 before and this branch after, playing the fixture above. The video and the overlay each draw their frame number.

  • Before: during pans and cuts, the masks trail the moving red blocks by two to four frames, so red shows around every sign. The overlay's frame number trails the video's by the same amount.
  • After: the masks cover the blocks on every frame after the first 1.5 s, and the two frame numbers match.

Risks

  • A 4K output shows signs rendered at 1080p and scaled up, so very small text is slightly softer than before.
  • During dense typesetting, the pool can hold up to ten 1080p canvases, about 80 MB.
  • The native AVPlayer path's frame timing is covered only by unit tests until it runs on hardware.
  • SwiftAssRenderer stays linked, unused by the overlay. Removing it is a follow-up.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code; OpenAI Codex (review)
  • Model(s): claude-opus-5-5; gpt-6.1-sol
  • Involvement: Fully AI-generated; human verification pending
  • Adversarial review: Codex gpt-6.1-sol did four rounds of read-only review of the full patch. Round 1 raised six findings, all fixed: native and software frame reports shared one generation counter, cue ids were reused after a held reload, render time was rounded, the selection fence had a gap, two conversions could trap, and the clock lead outlived its player item. Round 2 raised two findings, both fixed: a late presenter load could reopen the fence, and a held reload kept deleted events. Round 3 raised three findings, all fixed: a held reload that ended with no cues kept the old events, a late step could render with the new generation and the old timing, and a snapshot could hide stale queued frames. Round 4 confirmed those fixes and found nothing further. The Kody bot then found three more, fixed in 8eedee4f: recording a frame copied the whole frame table, the remote-HLS fallback skipped the grid frame after an off-grid start, and a late cue for the frame on screen could be missed. The Codex bot then flagged two more, fixed in bd62b0e1: a failed clear-canvas allocation left the last sign up, and the logged slowest time was a step's average rather than a single frame. One more, fixed in 70fee039: with no overlay showing, a full frame schedule shifted all its frames on every report.

🤖 Generated with Claude Code

Typeset signs trailed the picture by two to four frames. The overlay
sampled a running clock every 16 ms on the main actor, rendered each
sample through SwiftAssRenderer's float pipeline, and showed it as a
SwiftUI image, so a tracked mask lagged the signage it covers.

Render each sign at the exact timestamp of the frame AetherEngine
reports and queue it on an AVSampleBufferDisplayLayer whose control
timebase is the video's clock. Floor libass time to the millisecond, as
FFmpeg does. Composite libass masks straight into pooled premultiplied
BGRA buffers capped at 1080p, feed libass incrementally by cue id, and
fence each selection by a generation the session sets on the layer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-11T22:56:47.048755Z 70fee03 New commits
🔒 Security Review ✅ Completed 2026-10-11T22:57:20.456488Z 70fee03 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@silo-kody

silo-kody Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8a514176-beaa-4ad2-8f90-ad751eabb849


📥 Commits

Reviewing files that changed from the base of the PR and between 8eedee4 and 70fee03.



📒 Files selected for processing (4)
  • iosApp/Tests/ASSSubtitleRendererTests.swift
  • iosApp/iosApp/Screens/Player/Subtitles/ASSFrameSchedule.swift
  • iosApp/iosApp/Screens/Player/Subtitles/ASSOverlayPresenter.swift
  • iosApp/iosApp/Screens/Player/Subtitles/ASSSubtitleSession.swift


Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.




📝 Walkthrough
📝 Walkthrough

Walkthrough

The ASS subtitle pipeline now ingests cues incrementally, renders premultiplied BGRA pixel buffers, and presents changed canvases on a video-clock display layer. The session tracks cue revisions and playback timing. Tests cover rendering, scheduling, presentation, and selection changes.

Changes

ASS subtitle overlay

Layer / File(s) Summary
Incremental cue rendering and compositing
iosApp/iosApp/Screens/Player/Subtitles/ASSSubtitleRenderer.swift, iosApp/iosApp/Screens/Player/Subtitles/ASSImageCompositor.swift, iosApp/Tests/ASSSubtitleRendererTests.swift, docs/tvos-player/ass-subtitles.md
The renderer ingests cues by Aether cue ID, retains eligible aged-out cues, and flushes events when cues change or are retracted. It renders into pooled BGRA pixel buffers. The compositor blends clipped libass masks into premultiplied canvases. Tests cover cue updates, timing, clipping, and blending.
Frame scheduling and overlay presentation
iosApp/iosApp/Screens/Player/Subtitles/ASSFrameSchedule.swift, iosApp/iosApp/Screens/Player/Subtitles/ASSOverlayPresenter.swift, iosApp/Tests/ASSSubtitleRendererTests.swift, docs/tvos-player/ass-subtitles.md
The schedule stores native and software frame timestamps. The presenter maps playback time to cue time, renders ahead, and queues changed canvases through an AVSampleBufferDisplayLayer. Tests and documentation cover clock timing, seeks, late cues, and queue flushing.
Session lifecycle and hosted overlay
iosApp/iosApp/Screens/Player/Subtitles/ASSSubtitleSession.swift, iosApp/iosApp/Screens/Player/Subtitles/ASSSubtitleLayer.swift, iosApp/Tests/ASSSubtitleRendererTests.swift, iosApp/Tests/MediaAuthorizationPlaybackTests.swift
The session manages cue-feed revisions, presentation generations, clock selection, canvas sizing, and render metrics. The player view hosts the overlay layer and steps the session every 30 ms. Integration tests use session stepping and inspect overlay state.

Priority: ➖ Normal

Estimated code review effort: 4 (Complex) | ~45 minutes

Change: Bug fix

Sequence Diagram(s)

sequenceDiagram
  participant ASSSubtitleSession
  participant ASSOverlayPresenter
  participant ASSFrameSchedule
  participant ASSSubtitleRenderer
  participant ASSOverlaySink
  ASSSubtitleSession->>ASSOverlayPresenter: step with selection and clock timing
  ASSOverlayPresenter->>ASSFrameSchedule: read frames for the presentation window
  ASSOverlayPresenter->>ASSSubtitleRenderer: render cues at subtitle-source time
  ASSSubtitleRenderer-->>ASSOverlayPresenter: return changed pixel buffer or clear output
  ASSOverlayPresenter->>ASSOverlaySink: enqueue canvas at presentation timestamp
Loading

Possibly related PRs



Merge Risk: ⚪ Minimal · up to 70fee

No actionable merge-blocking issue remains from the reviewed changes; the PR is mergeable after normal checks.

Pre-merge checks | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 38.14% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 118 functions across 8 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly and concisely describes the primary change: synchronizing ASS subtitle rendering with the video's clock.
Description check Passed The description directly explains the subtitle timing problem, implementation approach, validation results, and known risks.

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR













🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR



  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@silo-triage silo-triage Bot added bug Something isn't working evidence-required Needs before-and-after evidence before the Evidence check passes impact: playback Can't play, stalls, or wrong media priority: P2 Limited scope, workaround exists, or polish labels Oct 11, 2026
@silo-triage

silo-triage Bot commented Oct 11, 2026

Copy link
Copy Markdown

The Evidence section describes the result but has no captures or linked artifacts showing subtitle synchronization. Add before-and-after captures and a short recording of the same moving-sign fixture for the affected tvOS, iOS, and macOS players, naming each build or commit. Include the current-head rerun results when available; the existing measurements are from an earlier revision.

let frame = Frame(stamp: time.item, source: time.source.seconds)
guard frame.presentation.isFinite, frame.source.isFinite else { return }
state.withLock { tables in
var table = tables[.native, default: Table()]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Performance high

Array copy-on-write occurs on each frame insertion because each report copies a Table out of tables while the dictionary retains its frames array, forcing nominally append-only recording to allocate and copy the entire retained schedule—up to 20,000 muxed-ahead frames—in O(N) time per frame under the shared lock. Mutate the dictionary's table in place or use uniquely owned reference storage protected by that lock.

Prompt for LLM

File iosApp/iosApp/Screens/Player/Subtitles/ASSFrameSchedule.swift:

Line 95:

Array copy-on-write occurs on each frame insertion because each report copies a `Table` out of `tables` while the dictionary retains its `frames` array, forcing nominally append-only recording to allocate and copy the entire retained schedule—up to 20,000 muxed-ahead frames—in O(N) time per frame under the shared lock. Mutate the dictionary's table in place or use uniquely owned reference storage protected by that lock.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Comment on lines +363 to +365
var time = ((start / interval).rounded(.down) + 1) * interval
// The division can round down a whole step when `start` is on the grid.
if time - start < interval / 2 { time += interval }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Bug medium

Fallback frame synthesis skips the next valid timestamp when it falls less than half an interval after start: at 25 fps and 0.035 s, it skips 0.040 s and starts at 0.080 s, causing Remote-HLS signs to retain the previous canvas through the skipped frame. Advance an additional interval only when the candidate is at or before start, not merely close to it.

if time <= start { time += interval }
Prompt for LLM

File iosApp/iosApp/Screens/Player/Subtitles/ASSOverlayPresenter.swift:

Line 363 to 365:

Fallback frame synthesis skips the next valid timestamp when it falls less than half an interval after `start`: at 25 fps and 0.035 s, it skips 0.040 s and starts at 0.080 s, causing Remote-HLS signs to retain the previous canvas through the skipped frame. Advance an additional interval only when the candidate is at or before `start`, not merely close to it.

Suggested Code:

if time <= start { time += interval }

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Comment on lines +242 to +244
let start = cueTime(forPresentation: now, timing) ?? 0
let end = cueTime(forPresentation: now + Self.lookaheadSeconds, timing) ?? start
if try applyCues(window: start...max(start, end) + interval), renderedThrough != nil {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Bug medium

Late-cue invalidation starts at the running clock rather than the displayed frame's timestamp: when that frame is stamped 0 s, now is 0.035 s, and a newly received sign ends at 0.020 s, renderer.update rejects the sign as outside the window and never refills the frame, although the sign belongs on the displayed picture. Start the invalidation window at the current frame's cue timestamp.

Prompt for LLM

File iosApp/iosApp/Screens/Player/Subtitles/ASSOverlayPresenter.swift:

Line 242 to 244:

Late-cue invalidation starts at the running clock rather than the displayed frame's timestamp: when that frame is stamped 0 s, `now` is 0.035 s, and a newly received sign ends at 0.020 s, `renderer.update` rejects the sign as outside the window and never refills the frame, although the sign belongs on the displayed picture. Start the invalidation window at the current frame's cue timestamp.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Recording a frame copied its table out of the schedule's dictionary and
back, so every report copied all retained frames, up to 20,000, under
the lock. Tables are now mutated in place.

Two smaller timing fixes from review: a late cue refills the frame on
screen even when the clock has moved past that frame's stamp, and the
remote-HLS fallback no longer skips the grid frame just after an
off-grid start.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8eedee4f02

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

sink.enqueue(clear, at: frame.stamp, generation: generation)
report.queuedCanvases += 1
}
queuedPixels = false

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Retry the clear canvas when allocation fails

When the last subtitle ends while transparentCanvas() cannot allocate a pixel buffer, this branch still sets queuedPixels to false. Subsequent frames normally return .unchanged, so the presenter never retries the clear and the previous subtitle canvas can remain visible indefinitely under memory pressure. Keep the pixel state set until a clear buffer is successfully enqueued.

Useful? React with 👍 / 👎.

stats.reportedFrames += report.reportedFrames
stats.renderSeconds += report.renderSeconds
if report.renderedFrames > 0 {
stats.slowest = max(stats.slowest, report.renderSeconds / Double(report.renderedFrames))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Track the actual slowest frame instead of a step average

When frames within one presenter step have different render costs, this calculation records that step's average as slowest. A single expensive frame among several cheap frames is therefore substantially underreported, making the new performance diagnostic unable to identify the stalls it is intended to expose. Carry the maximum individual render duration in Step and aggregate that value here.

Useful? React with 👍 / 👎.

When the last sign ends and the transparent canvas cannot be allocated,
the frame now renders again next step instead of leaving the sign up.
The overlay log's slowest time is the slowest single frame rather than
the slowest step's average.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bd62b0e1ab

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

} else {
frames.insert(frame, at: index)
}
if frames.count > capacity { frames.removeFirst(frames.count - capacity) }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid shifting the full frame schedule on every report

When no ASS overlay is visible, nothing calls prune, but the observers continue recording every video frame. After 20,000 frames—about 14 minutes at 24 fps or 5.5 minutes at 60 fps—each new report executes removeFirst(1), shifting the entire 20,000-element array under the lock on every frame for the rest of playback. Use a ring buffer or evict entries in batches so ordinary long playback without ASS subtitles does not incur sustained O(capacity) work per frame.

Useful? React with 👍 / 👎.

Nothing prunes the schedule while no overlay is showing, so once a long
playback filled it, every frame report shifted all 20,000 retained
frames under the lock. Past capacity it now drops the oldest quarter at
once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 70fee03977

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

frames += upcomingFrames(after: current?.presentation ?? now, through: horizon, timing)
}

for (frame, reported) in frames.prefix(Self.maximumFramesPerStep) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Scale the render cadence for high-rate playback

With supported 240-fps content playing at the exposed 3× speed, the 30 ms loop sleep advances about 22 video frames, but this cap processes at most 12; on the next step renderedThrough is therefore more than two frames behind, so the refill branch jumps to the frame currently on screen and never renders the intervening ASS animation frames. The ten-canvas pool can shorten the covered interval further. Make the step limit or wake cadence account for frame rate and playback rate so frame-exact signs remain continuous at supported settings.

Useful? React with 👍 / 👎.

@Quick104
Quick104 merged commit 8ea6e89 into main Oct 11, 2026
9 checks passed
@Quick104
Quick104 deleted the fix/ass-subtitle-sign-rendering branch October 11, 2026 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working evidence-required Needs before-and-after evidence before the Evidence check passes impact: playback Can't play, stalls, or wrong media priority: P2 Limited scope, workaround exists, or polish

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant