mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
more notes about font issues and performance
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user