Skip to content

Fix the case which sometimes the player does not stop when WebImage it out of screen #236

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

Merged
merged 3 commits into from
Sep 23, 2022

Conversation

dreampiggy
Copy link
Collaborator

This consume CPU because CADisplayLink is still running in the background

Solution

Using the ZStack as a container to distinguish the container disappear vs frame disapppear

See: https://twitter.com/unixzii/status/1573281351939530752

Demo

Pay attention to the CPU usage (compared to previous v2.2.0 behavior)

demo.mov.zip

…t out of screen

This consume CPU because CADisplayLink is still running in the background
@dreampiggy dreampiggy added webimage WebImage struct performance labels Sep 23, 2022
@dreampiggy dreampiggy merged commit c60b04b into master Sep 23, 2022
@dreampiggy dreampiggy deleted the bugfix_webimage_no_stop_playing_quick_scroll branch September 2, 2023 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant