Rigellute/spotify-tui

Rendering of Tickrate and Framerate a bit confusing

Opened this issue · 1 comments

let bar_chart_title = &format!("Pitches | Tick Rate {} {}FPS", tick_rate, 1000 / tick_rate);

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?

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.