GPU supported UI rendering in 2020

Two of our apps using JUCE have been out for about a year now. Currently they’re macOS only but we’re just working on a Windows release.
The apps do video playback and they rely heavily on OpenGL for the rendering engine part.

We’re also using JUCE’s OpenGL supported drawing of the UI as this made a huge difference compared to non-GL drawing especially for smooth scrolling in tables and our media timeline.

We had a lot of trouble at the beginning to set this up correctly in combination with our own OpenGL based rendering pipeline. But it worked fine for all but very few users in the end.

I’m now getting more and more issue reports with weird UI glitches in the latest update of Mojave but primarily on Catalina so I’m thinking about getting rid of OpenGL altogether but I’m not sure what the best approach is at this time.

Is moving over to Metal the right choice at this point?
What about MoltenVK? As it’s developed by Khronos I’m assuming it’s supported well but is anyone using it and can share actual experience?
I know that you can do work in Metal and draw the result in an OpenGL render view but does the same work for MoltenVK/Vulkan?

What’s the current status of JUCE UI rendering?
Are we going to see a Metal/Vulkan/MoltenVK based UI renderer anytime soon?

Thanks in advance!

5 Likes

Can anyone from the dev team maybe share his thoughts on the topic? @t0m? @jules?
I’m sure I’m not the only one interested in this. Thank you!

6 Likes

An easy solution for fast smooth animations, repainting without interception from message thread, wether GPU or CPU based, stable to use inside plugin GUIs, multi-platform, is also my #1 feature request for JUCE.

7 Likes

Rendering performance was the #1 request from a lot devs…

4 Likes

We’re experimenting with new rendering approaches at the moment, but we don’t have anything ready in the near future. The first thing to emerge is likely to be a Metal renderer followed by Vulkan. I’ve had a go with MoltenVK but providing this in a framework like JUCE is pretty cumbersome.

3 Likes

Are there any easy ways to ease up the CPU usage of displaying Path instances with lots of points? Think Goniometer or Histogram…

Thanks @t0m for the feedback!
I haven’t had a look at MoltenVK, but can you outline why it would be cumbersome to integrate it in JUCE? Many dependencies?

Building it yourself is a pain, and we don’t want to require a binary component. Even once you’ve built it there’s some non-trivial config that needs to happen too. If you’re an experienced software dev then you’ll be able to work it out eventually, but for people just starting out with JUCE the experience would be horrible.

4 Likes