-
Notifications
You must be signed in to change notification settings - Fork 18
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
Unable to match desired swap behavior #16
Comments
I've also seen this line many times but I'm unable to find it in AOSP. Maybe it comes from a proprietary GPU driver 🤔 |
I found it, there's a "the" in there |
Yes, it happens both in emulators and in on a lot of people's phones (including mine), and the weird thing is that it just straight up doesn't happen on the Mastodon app. Do you have any clue as for what could be the culprit? |
I have no idea, it would require diving deep into libhwui, e.g. at least when and from where that function is called and what "preserve buffer" means. It may also be only happening in debug builds ( |
The only thing that bothers me is that the only time it happens is during the ripple animations, which just stop in the middle and look terrible. It's a weird problem to have 😔 |
AFAIK ripple animations render on the render thread. A native-only thread that an app can't run any of its own code on, that is responsible for actually drawing things with OpenGL (and I believe Vulkan in some more recent Android versions on some devices). So it might be a bug in Android itself? The only reason I can think of why it might want to switch surfaces (does this end up calling |
It's a nice clue to have, however I am not sure the reason for this ripple animation lag to start happening right after upgrading appkit from 1.2.9 to 1.2.10 Maybe it's another variable I am not considering? |
I'm not sure it's related to appkit. It most probably isn't. |
In any case, you are a more experienced developer than me. Do you have any directions for where I should look for troubleshooting this? |
Everytime an animation lags I get the '"Unable to match desired swap behavior" log entry. It started happening after upgrading to appkit 1.2.10 (1.2.9 didn't have the issue), and I am still unable to debug the weird animation hiccups that usually happen in the ripple animations. Do you have any clue as for where this issue might be originating, considering that the Mastodon app doesn't have it?
Thank you!
The text was updated successfully, but these errors were encountered: