output: optionally call wlr_output_enable_adaptive_sync()

Set environment variable LAB_ADAPTIVE_SYNC to enable adaptive sync.
This commit is contained in:
Johan Malm 2021-03-22 21:25:51 +00:00
parent 2a48f2801b
commit be27024a2a

View file

@ -806,6 +806,11 @@ new_output_notify(struct wl_listener *listener, void *data)
* Arrange outputs from left-to-right in the order they appear. * Arrange outputs from left-to-right in the order they appear.
* TODO: support configuration in run-time * TODO: support configuration in run-time
*/ */
if (getenv("LAB_ADAPTIVE_SYNC")) {
info("Set %s adaptive sync to 'true'", wlr_output->name);
wlr_output_enable_adaptive_sync(wlr_output, true);
}
wlr_output_layout_add_auto(server->output_layout, wlr_output); wlr_output_layout_add_auto(server->output_layout, wlr_output);
wlr_output_schedule_frame(wlr_output); wlr_output_schedule_frame(wlr_output);
} }