mirror of
https://github.com/yshui/picom.git
synced 2024-11-03 04:33:49 -05:00
core: disable frame pacing when vsync is disabled
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
6e0bad0034
commit
359d004b99
1 changed files with 1 additions and 1 deletions
|
@ -1484,7 +1484,7 @@ static bool redirect_start(session_t *ps) {
|
||||||
pixman_region32_init(&ps->damage_ring[i]);
|
pixman_region32_init(&ps->damage_ring[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
ps->frame_pacing = !ps->o.no_frame_pacing;
|
ps->frame_pacing = !ps->o.no_frame_pacing && ps->o.vsync;
|
||||||
if ((ps->o.legacy_backends || ps->o.benchmark || !ps->backend_data->ops->last_render_time) &&
|
if ((ps->o.legacy_backends || ps->o.benchmark || !ps->backend_data->ops->last_render_time) &&
|
||||||
ps->frame_pacing) {
|
ps->frame_pacing) {
|
||||||
// Disable frame pacing if we are using a legacy backend or if we are in
|
// Disable frame pacing if we are using a legacy backend or if we are in
|
||||||
|
|
Loading…
Reference in a new issue