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


#1

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?


#2

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