Is that possible to find out the reason which caused lagging of UI like specific thread or method?
Cause I kind of put all the heavy work into another thread but I’ve still getting a lagged UI.
ImageAnalysis works in separate thread in which I do emotion detection via neural network. So when a neural network process an image in this not UI thread my UI thread also lags.
Is that possible at all? Can the separate thread slow down the UI thread by executing heavy task?
Maybe there’s some plugin for Android Studio or something like that to solve the problem.
I will be glad to any advice…