Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce forced reflows in Seekbar #653

Merged
merged 6 commits into from
Nov 19, 2024
Merged

Conversation

felix-hoc
Copy link
Contributor

@felix-hoc felix-hoc commented Nov 19, 2024

Description

There are quite a few Forced Reflows caused by the UI Seekbar:

Screenshot 2024-11-19 at 14 00 35

This can impact performance.

Changes

  • Disable SmoothPlaybackPositionUpdater while UI is hidden
  • force-update position when UI becomes visible and on Seek

Note: The Seekbar position is still regularly updated on TimeChanged events from the player. This is left as-is to prevent a big jumping animation when the UI is shown.

Checklist (for PR submitter and reviewers)

  • CHANGELOG entry

Copy link
Contributor

@Andr3wid Andr3wid left a comment

Choose a reason for hiding this comment

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

Nice 👍 Approving already before changelog entry :)

@felix-hoc felix-hoc marked this pull request as ready for review November 19, 2024 14:30
@felix-hoc felix-hoc merged commit 2b8fea5 into develop Nov 19, 2024
3 checks passed
@felix-hoc felix-hoc deleted the feature/reduce-forced-reflows branch November 19, 2024 14:45
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