ofxGrabCam + FSAA = super slow

did anyone else notice that when using

ofAppGlutWindow window;  
	window.setGlutDisplayString("rgba double samples>=4 depth");     
	ofSetupOpenGL(&window, 1280, 800, OF_WINDOW);  
	ofRunApp(new testApp());  

and then use grabcam the fps drops almost to 2 fps.

working of the ofxgrabcam sample i only added window.setGlutDisplayString(“rgba double samples>=4 depth”); and a fps print out.

seems like when the mouse cursor is on the window the fps drop, when moving the cursor outside the app window the fps go back to normal.

maybe it has something to do how ofxgrabcam uses the depth buffer to find a grab point.

as a hack solution to my problem i changed this ofxgrabcam code

if (pickCursorFlag || !mouseDown) {  
		pickCursorFlag = false;  


if (pickCursorFlag || !mouseDown) {  
		if(bAllowGrab) findCursor();  
		pickCursorFlag = false;  

and set bAllowGrab to true in mousePressed and to false in mouseReleased

That’s really helpful thanks. The performance has increased x10