I use openframework to create this application, if I connect the FireWire echo audiofire 2 interface, then the time it takes for glfwSwapBuffers changes from 200 to 12000 microseconds to a fairly consistent 30000, which destroys the target 60 frames per second.
I tried to comment on all processed objects and did not call without sound if the problem was in another place. The problem is not only the slow frame rate, sometimes I get very poor flicker, covering the bottom half of the screen (not only in the application, but also in the screen itself).
I am using Mac OSX 10
Openframeworks uses openGL, here is a function that calls glfwSwapBuffers.
//------------------------------------------------------------ void ofAppGLFWWindow::display(void){ ofPtr<ofGLProgrammableRenderer> renderer = ofGetGLProgrammableRenderer(); if(renderer){ renderer->startRender(); } // set viewport, clear the screen ofViewport(); // used to be glViewport( 0, 0, width, height ); float * bgPtr = ofBgColorPtr(); bool bClearAuto = ofbClearBg(); // to do non auto clear on PC for now - we do something like "single" buffering -- // it not that pretty but it work for the most part
source share