-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Animation gets clipped when view has a fixed size #161
Comments
@qmetzler-luna I know what's going on. You can work around this by changing your composition size to the display size you want. The composition size in px will be natively converted to dp when rendered so change your composition to be 75px. |
They broke because masks were getting applied iteratively instead of together. Fixes #161
This will be released with 1.5.2 |
@gpeal Thanks, it's working a lot better but if I downsize too much I'm still having some issue |
Uses multiple levels of offscreen buffers instead of a bitmap to further improve mask and matte performance. There are now no bitmaps created for masks or mattes! Performance is comparable but memory is greatly reduced. Multiple masks were broken because they were applied sequentially rather than together. Fixes #161.
@qmetzler-luna I just released 1.5.2 which is definitely an improvement with your samples. Thanks for sending them by the way. |
Previously, animations were given a max scale due to saveLayer, which is used for mattes and masks, only saving the canvas size. This is problematic when the scale makes the animations larger than the view because the masks and mattes get clipped. This gets around that by scaling up the animation up until the size of the view then scaling the canvas with the remaining scale. #395 #301 #161 #326 #315 Fixes #404
Requires more investigation. Likely due to masks/mattes + saveLayer/drawBitmap.
@qmetzler-luna
The text was updated successfully, but these errors were encountered: