more notes about font issues and performance

This commit is contained in:
Ben Fry
2019-01-18 15:59:15 -08:00
parent 9e14f98ec3
commit de20fffba7
2 changed files with 17 additions and 9 deletions
+13 -9
View File
@@ -894,15 +894,19 @@ public class PFont implements PConstants {
/**
* Make an internal list of all installed fonts. This can take a while with
* a lot of fonts installed, but running it on a separate thread may not
* help much. As of the commit that's adding this note, loadFonts() will
* only be called by PFont.list() and when loading a font by name, both of
* which are occasions when we'd need to block until this was finished
* anyway. It's also possible that running getAllFonts() on a non-EDT thread
* could cause graphics system issues. Further, the first fonts are usually
* loaded at the beginning of a sketch, meaning that sketch startup time
* will still be affected, even with threading (and blocking) in place.
* Make an internal list of all installed fonts.
*
* This can take a while with a lot of fonts installed, but running it on
* a separate thread may not help much. As of the commit that's adding this
* note, loadFonts() will only be called by PFont.list() and when loading a
* font by name, both of which are occasions when we'd need to block until
* this was finished anyway. It's also possible that running getAllFonts()
* on a non-EDT thread could cause graphics system issues. Further, the first
* fonts are usually loaded at the beginning of a sketch, meaning that sketch
* startup time will still be affected, even with threading in place.
*
* Where we're getting killed on font performance is due to this bug:
* https://bugs.openjdk.java.net/browse/JDK-8179209
*/
static public void loadFonts() {
if (fonts == null) {
+4
View File
@@ -9,6 +9,10 @@ X update to Java 8u202
X "Sketch disappeared" infinite pop up dialogs
X https://github.com/processing/processing/pull/4808
X https://github.com/processing/processing/issues/4805
X text("test", 10, 10); is still slow with lots of fonts
X https://bugs.openjdk.java.net/browse/JDK-8179209
X added a note to the Known Issues section in the Changes wiki
_ update the about screen to 2019
fixed earlier
X Could not initialize class com.sun.jna.Native on startup (Windows)