Open GL
-
I‘ve added it as runtime option in the settings menu so there‘s no need to build two versions.
-
@Christoph-Hart Oh even better! :)
-
Very cool ;) However, since Apple has deprecated OpenGL (from Mojave), maybe in the future the Metal support would be good too ;)
https://appleinsider.com/articles/18/06/28/why-macos-mojave-requires-metal----and-deprecates-opengl
-
@Christoph-Hart said in Open GL:
I‘ve added it as runtime option in the settings menu so there‘s no need to build two versions.
I don't see it in the setting panel, is that normal? (macOS)
-
I'm also trying to render the entire plugin as OpenGL. Is this still an option in the settings? I'm not seeing it in any of the recent builds.
-
Oh, I think I found it in StandalonePopupComponents.cpp – line 128
#if !HISE_USE_OPENGL_FOR_PLUGIN properties[(int)Properties::UseOpenGL] = false; #endif
-
I still have issue where on Windows everything is smooth but on Mac is really laggy :(
-
Hmm, it sped up my Mac plugin by like 200%. Crazy difference in speed.
-
So is it a pre-processor command finally?
-
I just set the flags in HISE before exporting
HISE_USE_OPENGL_FOR_PLUGIN=1
-
@Lunacy-Audio Ok thanks! I never think about the possibility to set flags in the preferences…
-
Yeah, same! I've had to do some digging for a few of them.
-
This post is deleted! -
Isnt OpenGL depreciated on the latest Macs?
-
It's officially "deprecated" by Apple, but it's going to be around for a long, long while. The plugin I'm working on is using OpenGL almost exclusively for the main component and works across all Macs without any issues. With Windows it gets a little fishy because the graphics cards are all over the place, but in general also works fine.
-
@Lunacy-Audio said in Open GL:
It's officially "deprecated" by Apple, but it's going to be around for a long, long while. The plugin I'm working on is using OpenGL almost exclusively for the main component and works across all Macs without any issues. With Windows it gets a little fishy because the graphics cards are all over the place, but in general also works fine.
yes this is my understanding too, however it's not so simple - the latest MacOS (and I assume all future ones) will use rosetta to virtualise your code - so you may see some performance hits as it morphs your OpenGL calls into Metal calls..
-
Doesn‘t rosetta just turn intel binaries into ARM ones?
-
@Christoph-Hart said in Open GL:
Doesn‘t rosetta just turn intel binaries into ARM ones?
oh maybe it does - how do the OpenGL calls get managed then on machine that only has Metal?
-
@Christoph-Hart said in Open GL:
Doesn‘t rosetta just turn intel binaries into ARM ones?
Is that possible without recompiling from source?
-
Yes, it converts the x86 assembly of a compiled binary to ARM assembly and then uses some kind of emulation layer. It works surprisingly well but you get a little bit of CPU overhead compared to a natively compiled binary for ARM.