Reduce image stutter by using subsampling more often.

Fixes #7208.
fork-5.53.8
Greyson Parrelli 2018-03-13 10:07:04 -07:00
rodzic 5f12696bed
commit f544b7d7b4
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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);
}
}