refactor(ui): cleanup 'redrawdebug', introduce "flush" mode

This commit is contained in:
bfredl
2023-02-08 16:16:16 +01:00
parent 1ca4a8b1dd
commit 625e990976
4 changed files with 18 additions and 7 deletions

View File

@@ -4765,7 +4765,7 @@ A jump table for the options with a short description can be found at |Q_op|.
Flags to change the way redrawing works, for debugging purposes.
Most useful with 'writedelay' set to some reasonable value.
Supports the following flags:
compositor Indicate what redraws come from the compositor
compositor Indicate each redraw event handled by the compositor
by briefly flashing the redrawn regions in colors
indicating the redraw type. These are the highlight
groups used (and their default colors):
@@ -4777,6 +4777,11 @@ A jump table for the options with a short description can be found at |Q_op|.
RedrawDebugRecompose guibg=Red redraw generated by the
compositor itself, due to a
grid being moved or deleted.
line introduce a delay after each line drawn on the screen.
When using the TUI or another single-grid UI, "compositor"
gives more information and should be preferred (every
line is processed as a separate event by the compositor)
flush introduce a delay after each "flush" event.
nothrottle Turn off throttling of the message grid. This is an
optimization that joins many small scrolls to one
larger scroll when drawing the message area (with
@@ -4786,7 +4791,7 @@ A jump table for the options with a short description can be found at |Q_op|.
useful when running nvim inside a debugger (and
the test suite).
nodelta Send all internally redrawn cells to the UI, even if
they are unchanged from the already displayed state.
they are unchanged from the already displayed state.
*'redrawtime'* *'rdt'*
'redrawtime' 'rdt' number (default 2000)
@@ -7372,8 +7377,7 @@ A jump table for the options with a short description can be found at |Q_op|.
*'writedelay'* *'wd'*
'writedelay' 'wd' number (default 0)
global
The number of milliseconds to wait for each character sent to the
screen. When positive, characters are sent to the UI one by one.
See 'redrawdebug' for more options. For debugging purposes.
Only takes effect toghether with 'redrawdebug'.
The number of milliseconds to wait after each line or each flush
vim:tw=78:ts=8:noet:ft=help:norl: