App wastes CPU resources while playing video
The app every second receive event to update video progress and set new value for TextView
. But that leads to remeasuring all UI. Considering poor UI performance (#2528 (closed)), this remeasuring leads to tangible wasting of CPU that leads to additional battery discharge.
If UI measuring on Samsung Note 4 take ~300ms, that means that one of CPU cores will be fully loaded 300ms of every second.
This problem appeared in version 3.2.0, after UI reorganization. Before that changing text in TextView
doesn't lead to UI remeasuring. If we set fixed size for TextView
as was in v3.1.7 the problem will gone.