[GH-ISSUE #626] Rendering of Tickrate and Framerate a bit confusing #254

Open
opened 2026-02-28 14:48:03 +03:00 by kerem · 1 comment
Owner

Originally created by @Bios-Marcel on GitHub (Oct 19, 2020).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/626

github.com/Rigellute/spotify-tui@81e357e218/src/ui/audio_analysis.rs (L39)

Because the text shown in the UI is Key Value ValueKey, it looks pretty confusing at first.
I'd recommend something like: Tick Rate: {}\tFPS: {}

On top of that, FPS seems to a fixed number of minimum rerenders, as it always displays 4 in my case. In reality, there can be more than 4 rerenders per second, for example when you hold down a key. Either way, is there a value of limitting the amount of rerenders? Why not go as fast and therefore smooth as we can?

Originally created by @Bios-Marcel on GitHub (Oct 19, 2020). Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/626 https://github.com/Rigellute/spotify-tui/blob/81e357e21826e2b61278175ccd68077febbdc6df/src/ui/audio_analysis.rs#L39 Because the text shown in the UI is `Key Value ValueKey`, it looks pretty confusing at first. I'd recommend something like: `Tick Rate: {}\tFPS: {}` On top of that, FPS seems to a fixed number of minimum rerenders, as it always displays `4` in my case. In reality, there can be more than 4 rerenders per second, for example when you hold down a key. Either way, is there a value of limitting the amount of rerenders? Why not go as fast and therefore smooth as we can?
Author
Owner

@Rigellute commented on GitHub (Feb 4, 2021):

This is a bit confusing, I agree. The tick rate defaults to 250ms (so 4fps, like you see). You can increase the fps by reducing the tickrate on start up:

# If you wanted 60fps you could pass in
spt --tick-rate 16

I used 250ms as default as I saw a fairly large increase in CPU usage in my tests on different devices.

Will look into clearing this up.

<!-- gh-comment-id:773111298 --> @Rigellute commented on GitHub (Feb 4, 2021): This is a bit confusing, I agree. The tick rate defaults to 250ms (so 4fps, like you see). You can increase the fps by reducing the tickrate on start up: ``` # If you wanted 60fps you could pass in spt --tick-rate 16 ``` I used 250ms as default as I saw a fairly large increase in CPU usage in my tests on different devices. Will look into clearing this up.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-tui#254
No description provided.