aboutsummaryrefslogtreecommitdiff
path: root/input.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-03 13:16:38 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-03 13:16:38 +0000
commitf87d4f856a277553be35fbee8c3abe2765d978dd (patch)
tree500f14a6d4816c00c1dcbd263bbd408b661f2799 /input.h
parentcsi: recognize 'smam', but log unimplemented (diff)
main: mitigate screen flashes on slow client
If a client writes to the PTY "too slow", we often end up flashing the screen. This could for example be caused by a client first erasing a line, then we render that frame, followed by the client updating the just-erased line. When we render _that_ frame, it will be perceived as a flash. Mitigate this by trying to read client data again, after finishing processing one batch, but before rendering. To avoid hanging on client output (and never rendering anything), limit this to at most 3 iterations. This may have to be tweaked.
Diffstat (limited to 'input.h')
0 files changed, 0 insertions, 0 deletions