Commit 05d36524 by andrewlewis Committed by tonihei

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
parent 28545c66
...@@ -152,7 +152,7 @@ public final class DefaultVideoFrameProcessor implements VideoFrameProcessor { ...@@ -152,7 +152,7 @@ public final class DefaultVideoFrameProcessor implements VideoFrameProcessor {
private static final String TAG = "DefaultFrameProcessor"; private static final String TAG = "DefaultFrameProcessor";
private static final String THREAD_NAME = "Effect:GlThread"; 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 EGLDisplay eglDisplay;
private final EGLContext eglContext; private final EGLContext eglContext;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment