Changeset 346 for trunk/VUT/chcdemo
- Timestamp:
- 10/21/05 20:28:11 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/chcdemo/RenderTraverser.cpp
r345 r346 182 182 // update node's visited flag 183 183 node->SetLastVisited(mFrameID); 184 184 node->SetVisible(true); 185 185 PullUpVisibility(node); 186 186 TraverseNode(node); … … 192 192 193 193 // identify nodes that we cannot skip queries for 194 bool leafOrWasInvisible = !wasVisible || node->IsLeaf();194 bool leafOrWasInvisible = (node->LastVisited() != mFrameID) && (!wasVisible || node->IsLeaf()); 195 195 196 196 // reset node's visibility classification … … 199 199 // update node's visited flag 200 200 node->SetLastVisited(mFrameID); 201 //if (mFrameID == node->LastVisited()) mNumFrustumCulledNodes ++;201 202 202 // skip testing previously visible interior nodes 203 203 if(leafOrWasInvisible) … … 215 215 { 216 216 // for stats 217 //mNumFrustumCulledNodes ++;217 mNumFrustumCulledNodes ++; 218 218 } 219 219 } … … 331 331 // get next available test id 332 332 unsigned int occlusionQuery = mOcclusionQueries[mCurrentTestIdx++]; 333 mNumFrustumCulledNodes ++;333 334 334 node->SetOcclusionQuery(occlusionQuery); 335 335 // do the actual occlusion query for this node
Note: See TracChangeset
for help on using the changeset viewer.