X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2Fgroundcache.hxx;h=145561a9c571589b47f1075e8d7be5735de6de2b;hb=7e91e7e98b9ba6a3b74883527602ad8886e352b8;hp=1db7fb0b628fefca1230fdef5c93dceff07b78f2;hpb=8f660b97ad95664c9eed11bf9a2afb247bba9fd9;p=flightgear.git diff --git a/src/FDM/groundcache.hxx b/src/FDM/groundcache.hxx index 1db7fb0b6..145561a9c 100644 --- a/src/FDM/groundcache.hxx +++ b/src/FDM/groundcache.hxx @@ -23,9 +23,6 @@ #ifndef _GROUNDCACHE_HXX #define _GROUNDCACHE_HXX -#include -#include - #include #include #include @@ -33,6 +30,13 @@ #include #include +// #define GROUNDCACHE_DEBUG +#ifdef GROUNDCACHE_DEBUG +#include +#include +#include +#endif + class SGMaterial; namespace simgear { class BVHLineGeometry; @@ -62,6 +66,8 @@ public: const SGVec3d& get_down() const { return down; } + // The time offset that originates from a simtime different than zero + // at initialization time of the fdm. double get_cache_time_offset() const { return cache_time_offset; } void set_cache_time_offset(double time_offset) @@ -131,6 +137,15 @@ private: bool found_ground; SGSharedPtr _localBvhTree; + +#ifdef GROUNDCACHE_DEBUG + SGTimeStamp _lookupTime; + unsigned _lookupCount; + SGTimeStamp _buildTime; + unsigned _buildCount; + + osg::ref_ptr _group; +#endif }; #endif