fxn / tkn

Terminal Keynote - A hack for terminal-based talks
MIT License
1.11k stars 84 forks source link

Speed up the transition for lengthier slides #8

Closed skanev closed 9 years ago

skanev commented 9 years ago

Sleeping 0.002s works great for shorter slides, but the transition time can become quite noticeable when there is more text – a larger code snippet or a "fancier" "diagram". This can get very annoying when you're moving back and forth between the slides and you're forced to wait quite a while.

Instead, I suggest an upper limit on how much a transition can take. If changing the slide would take more, the pause between printing each character is decreased. If not, the 0.002s pause is kept. I've set the upper slide transition limit to 0.3 because I'm a fan of faster transitions, but 0.4 and 0.5 also work fine.

If you're curious about when I'm encountering this problem, you can check this deck – it contains a few slides that take a bit too much for a 0.002s transition.

fxn commented 9 years ago

Agreed, I have mixed-feelings about the transition, this is a good idea.

fxn commented 9 years ago

Awesome deck by the way :).

skanev commented 9 years ago

Thanks! :)