Permalink
Browse files

video examples: set vertical sync

  • Loading branch information...
1 parent a72704a commit dd9cd4286115bab25477cefe33d3ec03d4030972 @arturoc arturoc committed Jan 5, 2013
@@ -7,10 +7,13 @@ void testApp::setup(){
camHeight = 240;
vidGrabber.setVerbose(true);
+ vidGrabber.setDeviceID(1);
+ vidGrabber.setDesiredFrameRate(60);
vidGrabber.initGrabber(camWidth,camHeight);
videoInverted = new unsigned char[camWidth*camHeight*3];
videoTexture.allocate(camWidth,camHeight, GL_RGB);
+ ofSetVerticalSync(true);
}
@@ -3,7 +3,7 @@
//--------------------------------------------------------------
void testApp::setup(){
ofBackground(255,255,255);
-
+ ofSetVerticalSync(true);
frameByframe = false;
// Uncomment this to show movies with alpha channels

0 comments on commit dd9cd42

Please sign in to comment.