diff options
author | Ivan Molodetskikh <yalterz@gmail.com> | 2019-09-25 13:58:27 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-11-17 20:18:42 +0100 |
commit | 022df2542baa057b1965a7c7ee9c32e738f637d2 (patch) | |
tree | e650befe8f210c0fc44eb8fadf3b125c70a1b01f /sway/sway-output.5.scd | |
parent | Add -Wno-missing-braces (diff) | |
download | sway-022df2542baa057b1965a7c7ee9c32e738f637d2.tar.gz sway-022df2542baa057b1965a7c7ee9c32e738f637d2.tar.zst sway-022df2542baa057b1965a7c7ee9c32e738f637d2.zip |
output: add max_render_time
Diffstat (limited to 'sway/sway-output.5.scd')
-rw-r--r-- | sway/sway-output.5.scd | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sway/sway-output.5.scd b/sway/sway-output.5.scd index ae6ced24..01496f19 100644 --- a/sway/sway-output.5.scd +++ b/sway/sway-output.5.scd | |||
@@ -107,6 +107,30 @@ must be separated by one space. For example: | |||
107 | Enables or disables the specified output via DPMS. To turn an output off | 107 | Enables or disables the specified output via DPMS. To turn an output off |
108 | (ie. blank the screen but keep workspaces as-is), one can set DPMS to off. | 108 | (ie. blank the screen but keep workspaces as-is), one can set DPMS to off. |
109 | 109 | ||
110 | *output* <name> max_render_time off|<msec> | ||
111 | When set to a positive number of milliseconds, enables delaying output | ||
112 | rendering to reduce latency. The rendering is delayed in such a way as | ||
113 | to leave the specified number of milliseconds before the next | ||
114 | presentation for rendering. | ||
115 | |||
116 | The output rendering normally takes place immediately after a | ||
117 | presentation (vblank, buffer flip, etc.) and the frame callbacks are | ||
118 | sent to surfaces immediately after the rendering to give surfaces the | ||
119 | most time to draw their next frame. This results in slightly below 2 | ||
120 | frames of latency between the surface rendering and committing new | ||
121 | contents, and the contents being shown on screen, on average. When the | ||
122 | output rendering is delayed, the frame callbacks are sent immediately | ||
123 | after presentation, and the surfaces have a small timespan (1 / | ||
124 | (refresh rate) - max_render_time) to render and commit new contents to | ||
125 | be shown on the next presentation, resulting in below 1 frame of | ||
126 | latency. | ||
127 | |||
128 | To set this up for optimal latency: | ||
129 | . Launch some _full-screen_ application that renders continuously, like | ||
130 | *glxgears*. | ||
131 | . Start with *max_render_time 1*. Increment by *1* if you see frame | ||
132 | drops. | ||
133 | |||
110 | # SEE ALSO | 134 | # SEE ALSO |
111 | 135 | ||
112 | *sway*(5) *sway-input*(5) | 136 | *sway*(5) *sway-input*(5) |