Ignore:
Timestamp:
10/20/05 18:49:11 (19 years ago)
Author:
mattausch
Message:

added switch between NV and ARB queries in the render system and in the demos.
Fixed render queue bug: when clearing queue, we traversed through all priority groups
to clear the passmaps. This became very slow because had to traverse many elements (over 1000
for city demo). Now all we destroy the priority groups for each rendering (per hierarchy node).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/Ogre/src/OgreVisibilityTerrainSceneManager.cpp

    r259 r343  
    434434        } 
    435435 
     436        if (key == "UseArbQueries") 
     437        { 
     438                bool useArbQueries = (*static_cast<const bool *>(val)); 
     439 
     440                if (useArbQueries) 
     441                { 
     442                        mHierarchyInterface->DeleteQueries(); 
     443                        mDestRenderSystem->setConfigOption("ArbQueries", "Yes"); 
     444                } 
     445                else 
     446                { 
     447                        mHierarchyInterface->DeleteQueries(); 
     448                        mDestRenderSystem->setConfigOption("ArbQueries", "No"); 
     449                } 
     450        } 
    436451        return VisibilityOptionsManager(mVisibilityManager, mHierarchyInterface). 
    437452                setOption(key, val) || TerrainSceneManager::setOption(key, val); 
Note: See TracChangeset for help on using the changeset viewer.