4 ms·
This is an implementation of the ImGui interface on top of ncurses. "Frames per second" doesn't really mean anything for ncurses, so I wouldn't trust it terribl
by thristian 6y ago
This is an implementation of the ImGui interface on top of ncurses. "Frames per second" doesn't really mean anything for ncurses, so I wouldn't trust it terribly much.
Basically, ncurses presents a "framebuffer" of coloured characters for the application to draw on. When the application says "draw this to the screen", ncurses compares the current framebuffer to the previously-drawn framebuffer, and tries to encode the difference in the smallest batch of terminal-control sequences it can find - it's a bit like React or Elm in the browser. Even if the application "redraws" the screen a million times a second, if there's no visible change, ncurses will do exactly nothing.
- ggerganov 6y agoVery well explained. Thanks