You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing the FontSize affects what is captured between Hide and Show blocks.
Setup
I have a TUI, built with ratatui, with a couple of different "scenes".
After running into an issue with flickering #88 , I set the Framerate to the same as the TUI's internal one: 4fps.
So my settings are these:
Output examples/demo.gif
Set PlaybackSpeed 1.
Set Framerate 4
Set Width 1920
Set Height 1080
Set FontSize 10
Set CursorBlink false
The TUI has a startup scene that I want to ommit for this demo, so I hide the first couple of commands and leave ample time.
Hide
Type "cargo run" Enter
Sleep 10s
Tab@1s 1
Sleep 5s
Type "m"
Sleep 1s
After typing m a fullscreen map should be rendered by the TUI, which I want to show.
Show
Sleep 20s
Type "m"
Sleep 1s
Type "w"
Sleep 20s
Typing w brings up a help menu that should be displayed until the .gif ends.
Issue
With FontSize 10 it shows what should only be rendered during the Hide Section:
With FontSize 16 it starts showing the map but not the help menu.
And finally with FontSize 24 I get to see parts of the help menu and it starts in the correct scene.
Ofc now the font is too big to fit anything.
I tried with multiple configurations of screens/ hiding & showing, sleep durations, framerates and setting the padding to 0, but I observed this behavior consistently.
I don't know what could be the cause of the issue here, but changing the FontSize had by far the biggest effect on the outcome.
I can also provide further information if necessary.
The text was updated successfully, but these errors were encountered:
After thinking this through a bit more, I invoked the mighty htop and found, that while my machine is perfectly fine running the TUI itself with terminal fontsize set to 10, it is absolutely not fine rendering it in the headless chromium browser so I guess I'm just stuck for now.
If anyone else comes across this issue, you now know where to look.
I do however have this super sped up version that happened with a non-restricted framerate configuration.
So I am still a bit confused as to my conclusion, maybe there is more to it after all?
Description
Changing the FontSize affects what is captured between Hide and Show blocks.
Setup
I have a TUI, built with ratatui, with a couple of different "scenes".
After running into an issue with flickering #88 , I set the
Framerate
to the same as the TUI's internal one: 4fps.So my settings are these:
The TUI has a startup scene that I want to ommit for this demo, so I hide the first couple of commands and leave ample time.
After typing
m
a fullscreen map should be rendered by the TUI, which I want to show.Typing
w
brings up a help menu that should be displayed until the .gif ends.Issue
With FontSize 10 it shows what should only be rendered during the
Hide
Section:With FontSize 16 it starts showing the map but not the help menu.
And finally with FontSize 24 I get to see parts of the help menu and it starts in the correct scene.
Ofc now the font is too big to fit anything.
I tried with multiple configurations of screens/ hiding & showing, sleep durations, framerates and setting the padding to 0, but I observed this behavior consistently.
I don't know what could be the cause of the issue here, but changing the
FontSize
had by far the biggest effect on the outcome.I can also provide further information if necessary.
The text was updated successfully, but these errors were encountered: