ChrisBuilds / terminaltexteffects

TerminalTextEffects (TTE) is a terminal visual effects engine, application, and Python library.

Home Page:https://chrisbuilds.github.io/terminaltexteffects/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slow startup and shutdown

adavies42 opened this issue · comments

It takes a second or two from launching tte <effect> < <input> for the effect to start displaying, and another second or two after the screen has stopped changing for tte to exit. These delays get longer with larger texts.

Effects often has two distinct phases. The first phase is a "building" phase where the characters have scenes and paths built. The second is "running" phase where animation is taking place and any run-time logic is handled. The delay prior to displaying an effect is caused by the time it takes to do all the setup. This is something that will benefit from optimization over time.

The delay at the end is often not an actual delay, but a perceived delay that results from the final gradient making subtle changes that may be hard to notice. You can verify this by reducing the number of --final-gradient-frames and/or --final-gradient-steps based on which are exposed for that particular effect. If the final gradient has many frames and many steps, the product of those two will create a long animation with a smoother gradient which could appear as a delay.