This commit is contained in:
Kovid Goyal 2024-07-25 18:40:25 +05:30
parent 9024341b1f
commit 3b2b7d9be5
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

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