lemnos / tt

A terminal based typing test.
MIT License
737 stars 49 forks source link

Disables rerender when not interacting #36

Closed jmonroynieto closed 1 year ago

jmonroynieto commented 1 year ago

The program re-renders the window even when no meaningful events are triggered. This made debugging harder and possibly had performance implications (none that I, as a user, can notice). I might look into this second point later.

jmonroynieto commented 1 year ago

Closing this after noticing that this was intended behavior generated by default case in the evaluation loop. For easier debugging, set the time duration of the ticker to large amounts.

I do have a question: Why force a redraw when there are no events that would change the look of the screen?