Hi all, For the love of God. I am not able to unde...
# compose
r
Hi all, For the love of God. I am not able to understand these 2 frame drops. What is getLayerProps? Am I even looking in the right direction. Need some guidance Can it be caused by heavy onCreate??
s
Just to confirm: are you profiling a release build with optimizations enabled? If not, the numbers likely won’t be representative. I searched the Compose codebase and couldn’t find anything like getLayersProps. Are you sure it isn’t coming from your own code? If you zoom in on the graph, you should be able to see what calls come right after it.
I’d also suggest adding the library described here, it makes traces much more informative. https://developer.android.com/develop/ui/compose/tooling/tracing
r
Thanks for replying @Sergey Y. I am checking in debug build. I think I should make my release build profileable and check.
r
getLayerProps
is something that happens at the native level. It's part of the layers management in SurfaceFlinger
Not sure why it would show up here though