Bool renderFrame() using too much CPU, maybe limit framerate?


JUCE bool renderFrame() is using 85% of the program’s CPU usage according to the VS profiler. That’s 85% of about 15% of my CPU which is too high. I’m expecting to get CPU usage at around 3%.

Is it a framerate thing? Too many FPS?


You can use OpenGLContext::setSwapInterval(1) to limit the framerate to the vertical sync (and thereby also the frame rate of the display).