Strategies for background-thread text rendering

Did you ever find a solution for this? We’re bumping up against this issue again.

To summarize for anyone else who finds this:

As far as I know, it is currently not possible (at least not straightforwardly) to render 60 fps (or faster) text animations in JUCE.

This is because rendering text on a background thread in JUCE requires the message thread to be locked (specifically for getGlyphPositions() ). Locking the OpenGL thread, though, can cause deadlocks (see Another OpenGL deadlock thread) and other issues, and is generally fairly detrimental for performance/framerate, especially with multiple windows running.

1 Like