[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.
This commit is contained in:
Chris Spencer 2022-01-13 21:09:40 +00:00 committed by Geoffrey McRae
parent a9b5302a51
commit f635077a2c

View file

@ -225,7 +225,7 @@ EGL_TexStatus egl_texBufferStreamGet(EGL_Texture * texture, GLuint * tex)
if (this->sync) if (this->sync)
{ {
switch(glClientWaitSync(this->sync, 0, 20000000)) // 20ms switch(glClientWaitSync(this->sync, 0, 40000000)) // 40ms
{ {
case GL_ALREADY_SIGNALED: case GL_ALREADY_SIGNALED:
case GL_CONDITION_SATISFIED: case GL_CONDITION_SATISFIED: