Show
Ignore:
Timestamp:
08/31/05 14:49:23 (9 years ago)
Author:
robert
Message:

Disable the glFinishBarrierOp usage as glFinish was spin locking the CPU :-|

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgcamera/osgcamera.cpp

    r4483 r4484  
    143143 
    144144 
    145     unsigned int numberCameras = 3; 
     145    unsigned int numberCameras = 1; 
    146146    unsigned int xpos = 0; 
    147147    unsigned int ypos = 400; 
     
    243243    // we can put a finish in to gate rendering throughput, so that each new frame starts with a clean sheet. 
    244244    // 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; 
    246247    bool doFinishAfterSwap = false; 
    247248 
     
    288289 
    289290        context->getGraphicsThread()->add(frameEndBarrierOp.get(), false); 
    290         context->getGraphicsThread()->add(preSwapBarrierOp.get(), false); 
     291        // context->getGraphicsThread()->add(preSwapBarrierOp.get(), false); 
    291292        context->getGraphicsThread()->add(swapOp.get(), false); 
    292293         
     
    311312        frameStamp->setFrameNumber(frameNum++); 
    312313         
    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; 
    314315        previous_tick = current_tick; 
    315316