config: add tweak.render-timer option

This can be set to 'none' (the default), 'osd', 'log' or 'both'.

When 'osd' is enabled, we'll render the frame rendering time to a
sub-surface after each frame.

When 'log' is enabled, the frame rendering time is logged on stderr.
This commit is contained in:
Daniel Eklöf 2020-08-13 18:35:17 +02:00
parent c7126c4076
commit 17070a0d54
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
8 changed files with 158 additions and 55 deletions

View file

@ -400,6 +400,12 @@ foot.
When reporting bugs, please mention if, and to what, you have changed
any of these options.
*render-timer*
Enables a frame rendering timer, that prints the time it takes to
render each frame, in microseconds, either on-screen, to stderr,
or both. Valid values are *none*, *osd*, *log* and
*both*. Default: _none_.
*delayed-render-lower*, *delayed-render-upper*
These two values control the timeouts (in nanoseconds) that are
used to mitigate screen flicker caused by clients writing large,