1
0
Fork 0
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:
Yuxuan Shui 2023-12-19 11:07:55 +00:00
parent 6e0bad0034
commit 359d004b99
No known key found for this signature in database
GPG key ID: D3A4405BE6CC17F4

View file

@ -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