Reduce image stutter by using subsampling more often.

Fixes #7208.
This commit is contained in:
Greyson Parrelli 2018-03-13 10:07:04 -07:00
parent 5f12696bed
commit f544b7d7b4

View File

@ -277,7 +277,7 @@ public class BitmapUtil {
}
public static int getMaxTextureSize() {
final int IMAGE_MAX_BITMAP_DIMENSION = 2048;
final int MAX_ALLOWED_TEXTURE_SIZE = 2048;
EGL10 egl = (EGL10) EGLContext.getEGL();
EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);
@ -303,6 +303,6 @@ public class BitmapUtil {
egl.eglTerminate(display);
return Math.max(maximumTextureSize, IMAGE_MAX_BITMAP_DIMENSION);
return Math.min(maximumTextureSize, MAX_ALLOWED_TEXTURE_SIZE);
}
}