performance tuning for macOS (after update of "jedit" component): old OpenGL works better for text rendering;
authorwenzelm
Mon, 11 Nov 2024 12:19:45 +0100
changeset 81427 ecd62f7b3644
parent 81426 56bab51e02c1
child 81428 257ec066b360
performance tuning for macOS (after update of "jedit" component): old OpenGL works better for text rendering;
src/Pure/Admin/component_jedit.scala
--- a/src/Pure/Admin/component_jedit.scala	Sun Nov 10 16:04:56 2024 +0100
+++ b/src/Pure/Admin/component_jedit.scala	Mon Nov 11 12:19:45 2024 +0100
@@ -471,6 +471,8 @@
 
     /* settings */
 
+    // see also https://docs.oracle.com/en/java/javase/21/troubleshoot/java-2d-properties.html
+
     component_dir.write_settings("""
 JEDIT_HOME="$COMPONENT/""" + jedit_patched + """"
 JEDIT_JARS=""" + quote(File.read_dir(jars_dir).map("$JEDIT_HOME/jars/" + _).mkString(":")) + """
@@ -480,7 +482,7 @@
 JEDIT_SETTINGS="$ISABELLE_HOME_USER/jedit"
 JEDIT_OPTIONS="-reuseview -nobackground -nosplash -log=9"
 JEDIT_JAVA_OPTIONS="-Xms512m -Xmx4g -Xss16m"
-JEDIT_JAVA_SYSTEM_OPTIONS="-Duser.language=en -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dapple.laf.useScreenMenuBar=true -Dapple.awt.application.name=Isabelle"
+JEDIT_JAVA_SYSTEM_OPTIONS="-Dsun.java2d.metal=false -Duser.language=en -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dapple.laf.useScreenMenuBar=true -Dapple.awt.application.name=Isabelle"
 
 ISABELLE_DOCS="$ISABELLE_DOCS:$JEDIT_HOME/doc"
 """)