Ignore:
Timestamp:
10/22/06 17:35:23 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp

    r1662 r1663  
    2828 
    2929#define USE_FIXEDPOINT_T 0 
    30  
     30#define CONSIDER_MEMORY 1 
    3131 
    3232///////////// 
     
    825825        // otherwise danger of being stuck in a local minimum!! 
    826826        const float factor = mRenderCostDecreaseWeight; 
     827 
     828#if CONSIDER_MEMORY 
     829        const float priority = factor * renderCostDecr - (1.0f - factor) * splitCandidate.GetPvsEntriesIncr(); 
     830#else 
    827831        const float priority = factor * renderCostDecr + (1.0f - factor) * oldRenderCost; 
     832#endif 
    828833#endif 
    829834         
     
    846851        // otherwise danger of being stuck in a local minimum!! 
    847852        const float factor = mRenderCostDecreaseWeight; 
     853#if CONSIDER_MEMORY 
     854        const float priority = factor * renderCostDecr - (1.0f - factor) * splitCandidate.GetPvsEntriesIncr(); 
     855#else 
    848856        const float priority = factor * renderCostDecr + (1.0f - factor) * oldRenderCost; 
     857#endif 
     858 
    849859#endif 
    850860         
Note: See TracChangeset for help on using the changeset viewer.