- Timestamp:
- 09/01/06 13:48:15 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreKdTreeSceneManager.cpp
r1304 r1312 44 44 mLeavePassesInQueue(0), 45 45 mDelayRenderTransparents(true), 46 mUseDepthPass( true),46 mUseDepthPass(false), 47 47 mIsDepthPassPhase(false), 48 48 mUseItemBuffer(false), … … 462 462 } 463 463 // vis options 464 else if (strKey == "NumFrustumCulledNodes") 465 { 466 if (mRenderMethod == KdTree::KDRM_INTERNAL) 467 { 468 unsigned int numnodes = 0; 469 if (mKdTree) 470 numnodes = mKdTree->getFramesStats().mFrustumCulledNodes; 471 472 * static_cast<unsigned int *>(pDestValue) = (unsigned int)numnodes; 473 return true; 474 } 475 // otherwise let fall through to VisibilityOptionsManager 476 } 477 else if (strKey == "NumQueryCulledNodes") 478 { 479 if (mRenderMethod == KdTree::KDRM_INTERNAL) 480 { 481 * static_cast<unsigned int *>(pDestValue) = 0; 482 return true; 483 } 484 // otherwise let fall through to VisibilityOptionsManager 485 } 464 486 else if (strKey == "NumHierarchyNodes") 465 487 { 466 488 unsigned int numnodes = 0; 467 489 if (mKdTree) 468 numnodes = mKdTree->get Stats().mNumNodes;490 numnodes = mKdTree->getTreeStats().mNumNodes; 469 491 470 492 * static_cast<unsigned int *>(pDestValue) = (unsigned int)numnodes; 471 493 return true; 494 } 495 else if (strKey == "NumRenderedNodes") 496 { 497 if (mRenderMethod == KdTree::KDRM_INTERNAL) 498 { 499 unsigned int numnodes = 0; 500 if (mKdTree) 501 numnodes = mKdTree->getFramesStats().mRenderedNodes; 502 503 * static_cast<unsigned int *>(pDestValue) = (unsigned int)numnodes; 504 return true; 505 } 506 // otherwise let fall through to VisibilityOptionsManager 507 } 508 else if (strKey == "NumQueriesIssued") 509 { 510 if (mRenderMethod == KdTree::KDRM_INTERNAL) 511 { 512 * static_cast<unsigned int *>(pDestValue) = 0; 513 return true; 514 } 515 // otherwise let fall through to VisibilityOptionsManager 516 } 517 else if (strKey == "NumTraversedNodes") 518 { 519 if (mRenderMethod == KdTree::KDRM_INTERNAL) 520 { 521 unsigned int numnodes = 0; 522 if (mKdTree) 523 numnodes = mKdTree->getFramesStats().mTraversedNodes; 524 525 * static_cast<unsigned int *>(pDestValue) = (unsigned int)numnodes; 526 return true; 527 } 528 // otherwise let fall through to VisibilityOptionsManager 472 529 } 473 530 else if (strKey == "VisibilityManager") … … 1357 1414 << "Use optimization: " << StringConverter::toString(mHierarchyInterface->GetTestGeometryForVisibleLeaves()) << ", " 1358 1415 << "Algorithm type: " << mVisibilityManager->GetCullingManagerType() << ", " 1359 << "Hierarchy nodes: " << (mKdTree ? mKdTree->get Stats().mNumNodes : 0) << ", "1416 << "Hierarchy nodes: " << (mKdTree ? mKdTree->getTreeStats().mNumNodes : 0) << ", " 1360 1417 << "Traversed nodes: " << mHierarchyInterface->GetNumTraversedNodes() << ", " 1361 1418 << "Rendered nodes: " << mHierarchyInterface->GetNumRenderedNodes() << ", "
Note: See TracChangeset
for help on using the changeset viewer.