- Timestamp:
- 05/28/10 17:51:00 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgUtil/IncrementalCompileOperation.cpp
r10764 r11473 94 94 void IncrementalCompileOperation::add(osg::Node* subgraphToCompile) 95 95 { 96 osg::notify(osg::INFO)<<"IncrementalCompileOperation::add("<<subgraphToCompile<<")"<<std::endl;96 OSG_INFO<<"IncrementalCompileOperation::add("<<subgraphToCompile<<")"<<std::endl; 97 97 add(new CompileSet(subgraphToCompile)); 98 98 } … … 100 100 void IncrementalCompileOperation::add(osg::Group* attachmentPoint, osg::Node* subgraphToCompile) 101 101 { 102 osg::notify(osg::INFO)<<"IncrementalCompileOperation::add("<<attachmentPoint<<", "<<subgraphToCompile<<")"<<std::endl;102 OSG_INFO<<"IncrementalCompileOperation::add("<<attachmentPoint<<", "<<subgraphToCompile<<")"<<std::endl; 103 103 add(new CompileSet(attachmentPoint, subgraphToCompile)); 104 104 } … … 118 118 if (callBuildCompileMap) compileSet->buildCompileMap(_contexts); 119 119 120 osg::notify(osg::INFO)<<"IncrementalCompileOperation::add(CompileSet = "<<compileSet<<", "<<", "<<callBuildCompileMap<<")"<<std::endl;120 OSG_INFO<<"IncrementalCompileOperation::add(CompileSet = "<<compileSet<<", "<<", "<<callBuildCompileMap<<")"<<std::endl; 121 121 122 122 OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_toCompileMutex); … … 126 126 void IncrementalCompileOperation::mergeCompiledSubgraphs() 127 127 { 128 // osg::notify(osg::INFO)<<"IncrementalCompileOperation::mergeCompiledSubgraphs()"<<std::endl;128 // OSG_INFO<<"IncrementalCompileOperation::mergeCompiledSubgraphs()"<<std::endl; 129 129 130 130 OpenThreads::ScopedLock<OpenThreads::Mutex> compilded_lock(_compiledMutex); … … 287 287 void IncrementalCompileOperation::operator () (osg::GraphicsContext* context) 288 288 { 289 // osg::notify(osg::NOTICE)<<"IncrementalCompileOperation::operator () ("<<context<<")"<<std::endl;289 // OSG_NOTICE<<"IncrementalCompileOperation::operator () ("<<context<<")"<<std::endl; 290 290 291 291 osg::NotifySeverity level = osg::INFO; … … 301 301 double currentElapsedFrameTime = context->getTimeSinceLastClear(); 302 302 303 osg::notify(level)<<"currentTime = "<<currentTime<<std::endl;304 osg::notify(level)<<"currentElapsedFrameTime = "<<currentElapsedFrameTime<<std::endl;303 OSG_NOTIFY(level)<<"currentTime = "<<currentTime<<std::endl; 304 OSG_NOTIFY(level)<<"currentElapsedFrameTime = "<<currentElapsedFrameTime<<std::endl; 305 305 306 306 double _flushTimeRatio(0.5); … … 314 314 315 315 #if 1 316 osg::notify(level)<<"total availableTime = "<<availableTime*1000.0<<std::endl;317 osg::notify(level)<<" flushTime = "<<flushTime*1000.0<<std::endl;318 osg::notify(level)<<" compileTime = "<<compileTime*1000.0<<std::endl;316 OSG_NOTIFY(level)<<"total availableTime = "<<availableTime*1000.0<<std::endl; 317 OSG_NOTIFY(level)<<" flushTime = "<<flushTime*1000.0<<std::endl; 318 OSG_NOTIFY(level)<<" compileTime = "<<compileTime*1000.0<<std::endl; 319 319 #endif 320 320 … … 325 325 326 326 #if 1 327 osg::notify(level)<<" revised compileTime = "<<compileTime*1000.0<<std::endl;327 OSG_NOTIFY(level)<<" revised compileTime = "<<compileTime*1000.0<<std::endl; 328 328 #endif 329 329 … … 351 351 if (!cd.empty()) 352 352 { 353 osg::notify(level)<<"cd._drawables.size()="<<cd._drawables.size()<<std::endl;354 osg::notify(level)<<"cd._textures.size()="<<cd._textures.size()<<std::endl;355 osg::notify(level)<<"cd._programs.size()="<<cd._programs.size()<<std::endl;353 OSG_NOTIFY(level)<<"cd._drawables.size()="<<cd._drawables.size()<<std::endl; 354 OSG_NOTIFY(level)<<"cd._textures.size()="<<cd._textures.size()<<std::endl; 355 OSG_NOTIFY(level)<<"cd._programs.size()="<<cd._programs.size()<<std::endl; 356 356 357 357 … … 399 399 if (cs_itr != _toCompile.end()) 400 400 { 401 osg::notify(level)<<"Erasing from list"<<std::endl;401 OSG_NOTIFY(level)<<"Erasing from list"<<std::endl; 402 402 403 403 // remove from the _toCompile list, note cs won't be deleted here as the tempoary
