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
Currently, resizing the terminal while playing doesn't cause the video to resize, and results in a lot of artifacts that don't necessarily go away even when set back to the original size. It would be nice to be able to react to this and change the resolution dynamically to keep the output clean.
The text was updated successfully, but these errors were encountered:
I'm currently working on basic support for this, but I still have a few issues. The plan is to listen for SIGWINCH using signal-hook, and to inform the Producer of the resolution change. When frames at the new resolution start to arrive (not necessarily the next frame, due to buffering), then the producer sends a message to indicate that the resolution change has happened and all new frames will arrive at the new resolution (currently this message is just the Initialize message again, since it already causes the main loop to create a new renderer with the correct resolution).
There's still room for optimisation though, and clearing the screen still seems to cause a small amount of artifacting. Plus SIGWINCH is not available on windows, so the current version breaks compatability.
Currently, resizing the terminal while playing doesn't cause the video to resize, and results in a lot of artifacts that don't necessarily go away even when set back to the original size. It would be nice to be able to react to this and change the resolution dynamically to keep the output clean.
The text was updated successfully, but these errors were encountered: