Skip to content

TypewriterEffect: no 1 ms gap between steps - #316

Merged
niksedk merged 1 commit into
mainfrom
claude/typewriter-no-gaps
Oct 11, 2026
Merged

niksedk merged 1 commit into
mainfrom
claude/typewriter-no-gaps

Conversation

@niksedk

@niksedk niksedk commented Oct 11, 2026

Copy link
Copy Markdown
Member

Fixes the flicker reported in SubtitleEdit/subtitleedit#15933.

Each typewriter step ended 1 ms before the next started (endMs = ... - 1), and the end-delay line started 1 ms after the last step. During a gap nothing is on screen, so the text flickers. In the reporter's 23.976 fps Blu-ray sup with "Full frame image", 205 clears of 1 ms gave about 5 visible flashes where the video showed through.

  • Each step now ends exactly where the next one starts
  • The end-delay line starts where the last step ends

Verified: release build passes. A scratch harness running the engine on a 64-character line, with and without an end delay, gives 0 gaps, and the first start and last end are unchanged.

🤖 Generated with Claude Code

Each step ended 1 ms before the next one started, and the end-delay
line started 1 ms after the last step. During each gap nothing is on
screen, so the text flickered, and a Blu-ray sup exported with "Full
frame image" let the video show through (SubtitleEdit/subtitleedit#15933).
Each step now ends where the next one starts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant