IDEA-144261 IDE is unusably slow when using a 4K display on OS X
2x increase size of cached glyphs
diff --git a/src/share/native/sun/java2d/opengl/OGLTextRenderer.c b/src/share/native/sun/java2d/opengl/OGLTextRenderer.c
index 53184c2..6ec6653 100644
--- a/src/share/native/sun/java2d/opengl/OGLTextRenderer.c
+++ b/src/share/native/sun/java2d/opengl/OGLTextRenderer.c
@@ -44,10 +44,10 @@
* The following constants define the inner and outer bounds of the
* accelerated glyph cache.
*/
-#define OGLTR_CACHE_WIDTH 512
-#define OGLTR_CACHE_HEIGHT 512
-#define OGLTR_CACHE_CELL_WIDTH 32
-#define OGLTR_CACHE_CELL_HEIGHT 32
+#define OGLTR_CACHE_WIDTH 1024
+#define OGLTR_CACHE_HEIGHT 1024
+#define OGLTR_CACHE_CELL_WIDTH 64
+#define OGLTR_CACHE_CELL_HEIGHT 64
/**
* The current "glyph mode" state. This variable is used to track the
@@ -107,7 +107,7 @@
* OGLTR_DrawLCDGlyphNoCache() method. See below for more on why we
* restrict this value to a particular size.
*/
-#define OGLTR_NOCACHE_TILE_SIZE 32
+#define OGLTR_NOCACHE_TILE_SIZE 64
/**
* These constants define the size of the "cached destination" texture.
@@ -128,7 +128,7 @@
* (OGLTR_CACHED_DEST_HEIGHT >= OGLTR_CACHE_CELL_HEIGHT) &&
* (OGLTR_CACHED_DEST_HEIGHT >= OGLTR_NOCACHE_TILE_SIZE)
*/
-#define OGLTR_CACHED_DEST_WIDTH 512
+#define OGLTR_CACHED_DEST_WIDTH 1024
#define OGLTR_CACHED_DEST_HEIGHT (OGLTR_CACHE_CELL_HEIGHT * 2)
/**