Ignore:
Timestamp:
06/18/08 17:33:16 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/CHC_revisited/RenderQueue.cpp

    r2768 r2771  
    2828 
    2929 
    30 RenderQueue::RenderQueue(): mState(NULL) 
     30RenderQueue::RenderQueue(): mState(NULL), mMinSizeForSorting(5) 
    3131{ 
    3232} 
     
    4343        for (int i = 0; i < size; ++ i) 
    4444                mEntities.push_back(entities[i]); 
    45  
    4645} 
    4746         
     
    6261void RenderQueue::Render() 
    6362{ 
    64         Sort(); 
     63        if (mEntities.size() >= mMinSizeForSorting) 
     64                Sort(); 
    6565         
    6666        //if (!mEntities.empty()) Debug << "rendering render queue" << endl; 
Note: See TracChangeset for help on using the changeset viewer.