I tried that, it did not help. renderOpenGL() gets called at full speed regardless the setting even when I set it to 10 or os.
Indeed, what you describe is indeed exactly what I’m looking. In fact Its seems to be almost there. I tried to hack some code, but i feel a little reluctant to do that, since it would break future updates of JUCE.
but… something like this and some more editing ( disabling the OpenGL render thread ) seem to work on OSX. I have no idea how compatible this is with other platforms.
void OpenGLContext::RenderFrame( void )
if ( CachedImage* const c = getCachedImage() )
c->hasInitialised = true;
Biggest problem is that the paint() of my openGLrender component does not get called for some reason I can’t figure out.
Another approach seems to be to use the OpenGLFrameBuffer object as suggested by otristan. But I can’t figure how to do use that but I’ll do additional investigations on that now.