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

Slow performance in UIScrollView when create CIImage from data directly. #65

Open
muukii opened this issue Mar 3, 2021 · 4 comments
Open
Labels
help wanted Extra attention is needed

Comments

@muukii
Copy link
Collaborator

muukii commented Mar 3, 2021

image
Untitled.trace.zip

@muukii
Copy link
Collaborator Author

muukii commented Mar 4, 2021

MTKView solves this issue.
But it has a limitation of the image size to render.

@muukii muukii added the help wanted Extra attention is needed label Mar 29, 2021
@muukii
Copy link
Collaborator Author

muukii commented Mar 29, 2021

#74

@muukii
Copy link
Collaborator Author

muukii commented Apr 17, 2021

UIImageView is optimized also for CIImage.
It uses itself CIContext internally to display CIImage.
However, how the performance is going on depends on CIImage's backing storage.

And in this case, UIImageView is embedded in UIScrollView.
Scrolling is fine because the canvas size won't change.
Zooming is worst because the canvas size will change every frame.
While this, UIImageView redraws the image using CIContext.

@muukii
Copy link
Collaborator Author

muukii commented Apr 17, 2021

#105

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant