From f635077a2ced3136f6b78013011866b916d1e362 Mon Sep 17 00:00:00 2001 From: Chris Spencer Date: Thu, 13 Jan 2022 21:09:40 +0000 Subject: [PATCH] [client] egl: increase texture processing timeout On my machine (Intel UHD Graphics 770), texture processing occasionally (about 5% of the time) takes more than 20ms (the highest I have seen is around 32ms) when the host resolution is 2560x1440. This results in the frame being discarded and the client displays a stale image. Increase the timeout to 40ms. --- client/renderers/EGL/texture_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/renderers/EGL/texture_buffer.c b/client/renderers/EGL/texture_buffer.c index 734d0ecf..2ee83223 100644 --- a/client/renderers/EGL/texture_buffer.c +++ b/client/renderers/EGL/texture_buffer.c @@ -225,7 +225,7 @@ EGL_TexStatus egl_texBufferStreamGet(EGL_Texture * texture, GLuint * tex) if (this->sync) { - switch(glClientWaitSync(this->sync, 0, 20000000)) // 20ms + switch(glClientWaitSync(this->sync, 0, 40000000)) // 40ms { case GL_ALREADY_SIGNALED: case GL_CONDITION_SATISFIED: