-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Rendering with Core Animation #3131
Comments
I'm curious as well. But can we use CA without layer? I'm not sure how we can live with layer, like for bar chart. I used to write a bar chart view, while each bar is a layer/view, the performance is not ideal than this library though (maybe because I just get started at that time). But it's great we can review back. |
CA is all about layers, so there's no getting around that. I think it's likely that it was because you were just getting started in CA. I've seen games written entirely in UIKit (which is all backed by CA) which run with great performance. (I'm guessing from experience) I think that for the simple rendering there will be slightly more work for us, but for the more complex stuff there will be less work. |
+1 this would help with #2402 |
UIView already contains a CALayer which you can override, and every chart extends from the
And use this |
Any update on this? |
@petester42 @liuxuan30 @danielgindi
Continuing on #29, why have we not considered using Core Animation instead of Core Graphics? Core Animation is what virtually all of iOS's UI is using and was recently rewritten with a Metal backing (iOS 9/macOS 10.11 I believe).
In my experience it has been hard to match the performance of Core Animation with Core Graphics code, which is probably why Core Graphics hasn't been mentioned at WWDC in many years. Given CA heavily relies on the GPU instead of the CPU AND we are not taxing the GPU, any CPU bottlenecks should be gone, performance should improve, and energy consumption should be reduced.
I understand this would be a very big undertaking (one I'd be happy to participate in), but it seems like it would be able to provide significant benefits for consumers. Given Apple's focus on Core Animation, it is likely that it will allow us keep up with modern best practices more easily.
The text was updated successfully, but these errors were encountered: