/// @return Have any nodes changed since the last frame
boolhasChanged()const;
voidmarkUnchanged(){mChanged=false;}
boolhasViewPoint()const;
@ -60,7 +61,7 @@ namespace Terrain
private:
std::vector<Entry>mEntries;
unsignedintmNumEntries;
unsigned intmFrameLastUsed;
double mLastUsageTimeStamp;
boolmChanged;
osg::Vec3fmViewPoint;
boolmHasViewPoint;
@ -71,14 +72,16 @@ namespace Terrain
{
public:
ViewDataMap()
:mReuseDistance(100)// large value should be safe because the visibility of each node is still updated individually for each camera even if the base view was reused.
:mReuseDistance(300)// large value should be safe because the visibility of each node is still updated individually for each camera even if the base view was reused.
// this value also serves as a threshold for when a newly loaded LOD gets unloaded again so that if you hover around an LOD transition point the LODs won't keep loading and unloading all the time.