Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(crossterm): Speed up combined fg and bg color changes by up to 20%
Use Crossterm SetColors instead of SetForegroundColor and SetBackgroundColor. In crossterm-rs/crossterm#879 I changed the SetColors command to write both colors at once with a single write instead of multiple writes that more bytes. This led to a 15-25% fps increase when testing the colors_rgb example on iTerm2 on an M2 Macbook Pro.
- Loading branch information