Changeset 2575 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.cpp
- Timestamp:
- 01/03/08 15:53:44 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.cpp
r2569 r2575 3 3 #include <stack> 4 4 5 5 #include "Material.h" 6 6 #include "ViewCell.h" 7 7 #include "Mesh.h" … … 14 14 #include "Exporter.h" 15 15 #include "BvHierarchy.h" 16 17 #ifdef PERFTIMER 16 18 #include "Timer/PerfTimer.h" 17 19 #endif 18 20 19 21 namespace GtpVisibilityPreprocessor { … … 23 25 #define TYPE_LEAF -3 24 26 27 #ifdef PERFTIMER 25 28 static PerfTimer sPvsTimer; 26 29 static PerfTimer sSearchTimer; 27 28 30 #endif 29 31 30 32 static inline bool ilt(Intersectable *obj1, Intersectable *obj2) … … 45 47 46 48 typedef priority_queue<ViewCell *, vector<ViewCell *>, 47 48 49 int ViewCell::sMailId = 10000;//2147483647;50 int ViewCell::sReservedMailboxes = 1;49 myless<vector<ViewCell *>::value_type> > TraversalQueue; 50 51 int Intersectable::sMailId = 10000;//2147483647; 52 int Intersectable::sReservedMailboxes = 1; 51 53 52 54 float MergeCandidate::sRenderCostWeight = 0; … … 55 57 // pvs penalty can be different from pvs size 56 58 inline static float EvalPvsPenalty(const float pvs, 57 58 59 const float lower, 60 const float upper) 59 61 { 60 62 // clamp to minmax values … … 2686 2688 Intersectable *obj; 2687 2689 2690 #ifdef PERFTIMER 2688 2691 sPvsTimer.Entry(); 2689 2692 #endif 2690 2693 int pvsSize; 2691 2694 stream.read(reinterpret_cast<char *>(&pvsSize), sizeof(int)); … … 2703 2706 } 2704 2707 2708 #ifdef PERFTIMER 2705 2709 sPvsTimer.Exit(); 2710 #endif 2706 2711 2707 2712 return leaf; … … 2738 2743 queue<ViewCell *> tStack; 2739 2744 2745 #ifdef PERFTIMER 2740 2746 sPvsTimer.Start(); 2741 2747 #endif 2748 2742 2749 mPvsIds = new int[pvsObjects.size()]; 2743 2750 … … 2774 2781 } 2775 2782 2783 #ifdef PERFTIMER 2776 2784 Debug << "needed " << sPvsTimer.TotalTime() << " secs for pvs loading" << endl; 2777 2785 #endif 2786 2778 2787 delete mPvsIds; 2779 2788
Note: See TracChangeset
for help on using the changeset viewer.