2 ms·
Does it only redraw things on change, or fixed at 60 FPS no matter what? Does it redraw the whole screen, or only the parts that have changed? A lot of the scr
by realharo 6y ago
Does it only redraw things on change, or fixed at 60 FPS no matter what? Does it redraw the whole screen, or only the parts that have changed?
A lot of the screens show FPS info, so it's not immediately obvious.
- thristian 6y agoThis 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