|
|
|
|
|
by Zev
4768 days ago
|
|
Saying "Always rasterize" isn't necessarily the solution, either. Its actually pretty bad advice to follow all the time ;) I suspect (but can't confirm without the source code to the demo) that shouldRasterize would actually hurt performance in one of the two cases in the article. Specifically, I imagine that it would make the score for adding and removing views from screen even worse than it already is. Yes, it renders into a bitmap, and reduces CPU usage, once you've paid the upfront rendering cost. But, it doesn't rasterize opacity, and, will use up a ton of memory (because it doesn't result in stretchable images). |
|