[Bug] Mini-player progress bar high GPU usage
Description
Hello again! The truncated title option works well, props to you, and your 10X dev response! But, sadly, another element of it keeps the GPU running at full speed.
My best guess would be the progress bar, which is pretty smooth, lets me think it updates at an uncapped rate. Luckily, the full screen player doesn't have this issue, as the progress bar does indeed move by small increments gradually without pushing render frames at a fast pace. You could somewhat copy that fullscreen bar code for simplicity's sake, maybe?
Steps to Reproduce
- Play music
- Have the mini-player marquee on display
- Battery drain
Expected Behavior
A less gpu-intensive marquee, which is displayed a lot of the time navigating the app, would prove battery saving.
Screenshots
(My bad, I was still in grayscale during the screenshot)
Device
- Device: realme 9
- OS: realme UI (android 13)
- Version 2023.12.108
Checklist
- [x] I have read the Contribution Guidelines.
This might need some investigation.
Seems to be just fine for me.
Well, what I mean is that the debug gpu profile bars shouldn't flow at a fast rate. Using an image was a bad decision from me, they should be choppy (indicating gpu standbys at regular intervals, instead of constant stress).
Another thing I thought of would be simply adding an option to remove the progress bar (like the title option, your truncated approach was great) but that would be pretty radical and ugly. Maybe an option to change the progress bar to a timecode
Anyway, I feel like this issue is getting a bit over the top for such a small problem, so I won't bother you any more!
Well, what I mean is that the debug gpu profile bars shouldn't flow at a fast rate. Using an image was a bad decision from me, they should be choppy (indicating gpu standbys at regular intervals, instead of constant stress).
Another thing I thought of would be simply adding an option to remove the progress bar (like the title option, your truncated approach was great) but that would be pretty radical and ugly. Maybe an option to change the progress bar to a timecode for the song? You'd only need to update it every second, that could be nice.
Anyway, I feel like this issue is getting a bit over the top for such a small problem, so I won't bother you any more!
I tried to find the cause for that but it seems like Compose likes to keep redrawing frequently. I'm not sure what actually causes this. The same happens in Now Player screen. Also, this redrawing doesn't stop when you pause after playing. I guess I'll take some time to find the cause.