Changeset 4484 for OpenSceneGraph/trunk/examples/osgcamera/osgcamera.cpp
- Timestamp:
- 08/31/05 14:49:23 (8 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgcamera/osgcamera.cpp
r4483 r4484 143 143 144 144 145 unsigned int numberCameras = 3;145 unsigned int numberCameras = 1; 146 146 unsigned int xpos = 0; 147 147 unsigned int ypos = 400; … … 243 243 // we can put a finish in to gate rendering throughput, so that each new frame starts with a clean sheet. 244 244 // you should only enable one of these, doFinishBeforeNewDraw will allow for the better parallism of the two finish approaches 245 bool doFinishBeforeNewDraw = true; 245 // note, both are disabled right now, as glFinish is spin locking the CPU, not something that we want... 246 bool doFinishBeforeNewDraw = false; 246 247 bool doFinishAfterSwap = false; 247 248 … … 288 289 289 290 context->getGraphicsThread()->add(frameEndBarrierOp.get(), false); 290 context->getGraphicsThread()->add(preSwapBarrierOp.get(), false);291 // context->getGraphicsThread()->add(preSwapBarrierOp.get(), false); 291 292 context->getGraphicsThread()->add(swapOp.get(), false); 292 293 … … 311 312 frameStamp->setFrameNumber(frameNum++); 312 313 313 std::cout<<"Frame rate "<<1.0/osg::Timer::instance()->delta_s(previous_tick,current_tick)<<std::endl;314 //std::cout<<"Frame rate "<<1.0/osg::Timer::instance()->delta_s(previous_tick,current_tick)<<std::endl; 314 315 previous_tick = current_tick; 315 316
