-
-
Notifications
You must be signed in to change notification settings - Fork 452
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify the ftxui::Pixel. Instead of storing a wchar, store a std::wstring. Now a single pixel can store multiple codepoints. If a codepoint is of size <=0, it will be appended to the previous pixel. Only ftxui::text() is supported. ftxui::vtext support still needs to be added. This causes the following CPU and memory regression: - Memory: Pixel size increases by 200% (16 byte => 48byte). - CPU: Draw/Second decrease by 62.5% (16k draw/s => 6k draw/s on 80x80) Both regressions are acceptable. There are still two orders of magnitude (100x) before the levels where performance/memory concerns begins. This fixes: #109
- Loading branch information
1 parent
93922f1
commit 4a5cbf0
Showing
4 changed files
with
41 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters