Skip to content

Reduce unnecessary UI work during video playback - #2161

Merged
anilbeesetti merged 2 commits into
mainfrom
fix/issue-2159-player-comparison
Dec 1, 2026
Merged

anilbeesetti merged 2 commits into
mainfrom
fix/issue-2159-player-comparison

Conversation

@anilbeesetti

Copy link
Copy Markdown
Owner

Summary

Playback did unnecessary UI work during long sessions. Observe progress only while unlocked controls or the chapters panel need it. Measure draggable subtitle bounds with an alpha-only bitmap when text is present and the player is fullscreen.

Refs #2159.

Evidence

  • Pixel 6a emulator, API 37. Hidden-controls frame callbacks fell from 637 to 37 over 20 seconds with video output near 30 fps. Dense SRT playback used 22% less main-thread CPU across two samples per build. Physical battery impact remains unmeasured.
  • ./gradlew assembleDebug test ktlintCheck passed. Four targeted device tests passed. Manual checks covered live chapter selection, seeking, and lock/unlock.

Merge risk

Reversible. Scope is playback progress display and subtitle drag hit testing.

Reviewed with sol-loop. One round with GPT-6.2 Sol, approved.

Created with GPT-6.2 Sol in T3 Code.

@anilbeesetti
anilbeesetti merged commit f0a8d72 into main Dec 1, 2026
3 of 4 checks passed
SeveriT pushed a commit to SeveriT/Overtime-Android that referenced this pull request Dec 2, 2026
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