mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-28 07:58:47 -04:00
opt: optimize frame skip judge
This commit is contained in:
parent
539fd233da
commit
12ab7d63ec
1 changed files with 3 additions and 3 deletions
|
|
@ -4120,9 +4120,9 @@ void rendermon(struct wl_listener *listener, void *data) {
|
||||||
// 绘制客户端
|
// 绘制客户端
|
||||||
wl_list_for_each(c, &clients, link) {
|
wl_list_for_each(c, &clients, link) {
|
||||||
need_more_frames = client_draw_frame(c) || need_more_frames;
|
need_more_frames = client_draw_frame(c) || need_more_frames;
|
||||||
if (!animations && !allow_tearing && c->configure_serial &&
|
if (!animations && !(allow_tearing && frame_allow_tearing) &&
|
||||||
!c->isfloating && client_is_rendered_on_mon(c, m) &&
|
c->configure_serial && !c->isfloating &&
|
||||||
!client_is_stopped(c)) {
|
client_is_rendered_on_mon(c, m) && !client_is_stopped(c)) {
|
||||||
goto skip;
|
goto skip;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue