DRYer
This commit is contained in:
parent
9024341b1f
commit
3b2b7d9be5
1 changed files with 2 additions and 2 deletions
|
|
@ -821,9 +821,9 @@ no_render_frame_received_recently(OSWindow *w, monotonic_t now, monotonic_t max_
|
|||
bool ans = now - w->last_render_frame_received_at > max_wait;
|
||||
if (ans && global_state.debug_rendering) {
|
||||
if (global_state.is_wayland) {
|
||||
fprintf(stderr, "[%f] No render frame received in %.2f seconds", monotonic_t_to_s_double(now), monotonic_t_to_s_double(max_wait));
|
||||
log_error("No render frame received in %.2f seconds", monotonic_t_to_s_double(max_wait));
|
||||
} else {
|
||||
fprintf(stderr, "[%f] No render frame received in %.2f seconds, re-requesting", monotonic_t_to_s_double(now), monotonic_t_to_s_double(max_wait));
|
||||
log_error("No render frame received in %.2f seconds, re-requesting", monotonic_t_to_s_double(max_wait));
|
||||
}
|
||||
}
|
||||
return ans;
|
||||
|
|
|
|||
Loading…
Reference in a new issue