Increase GL release timeout to 500 ms

Based on 1000 test runs an emulator, with the current timeout releasing
fails (even with no custom effects) about one percent of the time.
Releasing normally completes in about 30 ms but occasionally
`eglTerminate` took up to 200 ms (and even releasing an effect
took up to 80 ms in one case).

With the new timeout of 500 ms, we still catch stuck effects reasonably
quickly but the number of flaky test failures should be less than one in
ten thousand.

PiperOrigin-RevId: 512690715
This commit is contained in:
andrewlewis 2023-02-27 19:54:43 +00:00 committed by tonihei
parent 28545c6673
commit 05d3652443

View file

@ -152,7 +152,7 @@ public final class DefaultVideoFrameProcessor implements VideoFrameProcessor {
private static final String TAG = "DefaultFrameProcessor";
private static final String THREAD_NAME = "Effect:GlThread";
private static final long RELEASE_WAIT_TIME_MS = 100;
private static final long RELEASE_WAIT_TIME_MS = 500;
private final EGLDisplay eglDisplay;
private final EGLContext eglContext;