Show
Ignore:
Timestamp:
02/28/08 18:59:44 (10 years ago)
Author:
robert
Message:

Moved the delete operations to before of the compile operations to ensure that
delete operations don't get pushed out by allocations

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgViewer/Renderer.cpp

    r7858 r7893  
    391391 
    392392        double availableTime = 0.004; // 4 ms 
     393 
     394        if (compileThread) 
     395        { 
     396            compileThread->add(_flushOperation.get()); 
     397        } 
     398        else 
     399        { 
     400            sceneView->flushDeletedGLObjects(availableTime); 
     401        } 
     402 
    393403        if (databasePager && databasePager->requiresExternalCompileGLObjects(sceneView->getState()->getContextID())) 
    394404        { 
    395405            databasePager->compileGLObjects(*(sceneView->getState()), availableTime); 
    396         } 
    397  
    398         if (compileThread) 
    399         { 
    400             compileThread->add(_flushOperation.get()); 
    401         } 
    402         else 
    403         { 
    404             sceneView->flushDeletedGLObjects(availableTime); 
    405406        } 
    406407