Skip to content

Slow player UI

I noticed lags when UI appears. So I've added some logs to measure UI performance. Here is code I used for measuring: rt1shnik/vlc-android@258c2f31. This code measures the time from animation start to animation end.

UI appearing time (landscape orientation, video paused, v3.5.0):

  • Samsung Note 4, Android 6.0.1 (debug). ~450 ms (~300ms if I disable animation)
  • Samsung Note 4, Android 6.0.1 (release). ~1600 ms. ~1450 ms if I disable animation. This is additional problem with release build.
  • Lenovo P2a42. Android 6.0.1 (release). 250-300 ms, ~130 ms if I disable animation
  • Xiaomi 11T, Android 12 (release). 200-300 ms, ~100 ms if I disable animation.
  • Sony C6603, Android 5.1.1 (release). ~400 ms, ~250 ms if I disable animation.

UI appearing time was ~30 ms in v3.1.7 on Samsung Note 4. I believe the current version also can show similar result, UI appearing time should be about 30 ms when animation is disabled. I can try to do that.


Setting a fixed size for TextView fixed #2529 (closed), but also significantly improve overall UI performance.

UI appearing time (landscape orientation, video paused, v3.5.0):

  • Samsung Note 4, Android 6.0.1 (debug). Was ~300 ms if I disable animation. Now it ~65 ms.
  • Samsung Note 4, Android 6.0.1 (release). Was ~1450 ms if I disable animation. Now it ~350 ms.
  • Lenovo P2a42. Android 6.0.1 (release). Was ~130 ms if I disable animation. Now it ~55 ms.
  • Xiaomi 11T, Android 12 (release). Was ~100 ms if I disable animation. Now it ~40 ms.
Edited by Andrew Churyla