Changeset 306
- Timestamp:
- 10/17/06 11:40:45 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Dirk_RenderTraversalWork/Source/System/Action/RenderTraversal/OSGOcclusionCullingTreeBuilder.cpp
r304 r306 367 367 //make decision 368 368 //if(0 > 1) 369 if(cbb > scr_percent || cbb > 0.01)369 if(cbb > scr_percent) 370 370 { 371 371 drawNode(pNode, denv, part); … … 548 548 // std::cout << std::endl << "Waiting on " << pNode->getResultNum() << "th query"; 549 549 //} 550 while (!available) 550 GLuint sampleCount = 100; //XXX: Set to what it should be from calc above. 551 if(available) 551 552 { 552 553 //std::cout << "."; 553 getquiv(_testSamples[pNode->getResultNum()], GL_QUERY_RESULT_AVAILABLE_ARB, &available); 554 //getquiv(_testSamples[pNode->getResultNum()], GL_QUERY_RESULT_AVAILABLE_ARB, &available); 555 getquiv(_testSamples[pNode->getResultNum()], GL_QUERY_RESULT_ARB, &sampleCount); 554 556 //glGetQueryObjectivARB(queries[i], GL_QUERY_RESULT_AVAILABLE_ARB, &available); 555 557 //if(available) … … 559 561 } 560 562 561 GLuint sampleCount = 0;562 getquiv(_testSamples[pNode->getResultNum()], GL_QUERY_RESULT_ARB, &sampleCount);563 563 //glGetQueryObjectuivARB(queries[i], GL_QUERY_RESULT_ARB, &sampleCount); 564 564 //std::cout << i << ":" << sampleCount << " "; … … 727 727 728 728 729 #elif 0// Bucket sorting729 #elif 1 // Bucket sorting 730 730 731 731 int index = osgClamp(0, static_cast<int>(val * _nBuckets), _nBuckets - 1);
