Ben Schmidt wrote: > On 29/07/12 11:41 PM, Balazs Kezes wrote: > > My vim seems to flicker on big terminals because the output buffer is > > limited to 2K. Outputting a full redraw of large screen needs much more > > characters (especially if it has lots of colors). Currently it is > > distributed to several writes (separated by several milliseconds on my > > slow machine). This causes that when I press Page Down for example I can > > see the black flicker in bottom part of the terminal. > > > > I propose increasing this buffer to 64K. So in src/term.c: > > -# define OUT_SIZE 2047 > > +# define OUT_SIZE 65535 > > This sounds like a good idea to me.
The purpose of the output buffer is not to avoid flicker. It's to avoid many small updates, which is slow. Computers have much more memory now, thus we could make the buffer bigger. But they are also much faster, thus the need for reducing the number of calls is smaller. I suppose making it 8K would be OK. I'm mainly worried about slow remote connections. Personally that's where I sometimes have problems (ssh over GPRS). I'm not sure what the relation is between the buffer size and responsiveness. While typing out_flush() should be called quite often. -- % cat /usr/include/sys/errno.h #define EPERM 1 /* Operation not permitted */ #define ENOENT 2 /* No such file or directory */ #define ESRCH 3 /* No such process */ [...] #define EMACS 666 /* Too many macros */ % /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php