diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-12-17 18:12:08 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-12-17 18:14:56 +0000 |
| commit | c22ae98729437bf8370c54f7880f0473d472ac4a (patch) | |
| tree | 65116d7731a98737015abdd0aec83dd880658b69 /input.c | |
| parent | render: move blink timer handling to term.c (diff) | |
render: get rid of 'all-clean' detection
Instead of trying to figure out if we had to render
something (i.e. something in the grid was dirty), and using that to
determine whether to post a callback or not, we now let
render_refresh() set a flag indication we need to render another
frame.
This simplifies render_grid(), which now _always_ renders, and pushes
it to the compositor.
The callback handler checks the pending flag and simply doesn't call
render_grid() when there's no more pending state to render.
This ends up reducing the number of wakeups when e.g. having a
blinking cursor.
Diffstat (limited to 'input.c')
0 files changed, 0 insertions, 0 deletions
