- Timestamp:
- 01/23/07 16:29:58 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/CombinedPreprocessor.cpp
r2036 r2043 14 14 #include "RayCaster.h" 15 15 16 //#include "PerfTimer.h"17 16 18 17 19 18 namespace GtpVisibilityPreprocessor { 20 19 21 //extern PerfTimer viewCellCastTimer;22 //extern PerfTimer pvsTimer;23 //extern PerfTimer objTimer;24 20 25 21 const bool pruneInvalidRays = true; … … 81 77 mRayCaster->InitPass(); 82 78 83 cout<<"Progress :"<< mTotalSamples/1e6f<<"M rays, "<<(100.0f*i)/mTotalSamples<<"%"<<endl;79 cout<<"Progress :"<<i/1e6f<<"M rays, "<<(100.0f*i)/mTotalSamples<<"%"<<endl; 84 80 85 81 rays.clear(); … … 95 91 mMixtureDistribution->ComputeContributions(vssRays); 96 92 97 //cout<<"view cell cast time:"<<viewCellCastTimer.TotalTime()<<" s"<<endl;98 //cout<<"pvs time:"<<pvsTimer.TotalTime()<<" s"<<endl;99 //cout<<"obj time:"<<objTimer.TotalTime()<<" s"<<endl;100 93 101 94 if (mExportRays) { -
GTP/trunk/Lib/Vis/Preprocessing/src/SamplingPreprocessor.cpp
r2035 r2043 114 114 for (; rays.size() < 16; ) { 115 115 if (i%100000 == 0) { 116 cout<<samples/1e6f<<"M rays, progress: "<< samples*100/mTotalSamples<<" % \r";116 cout<<samples/1e6f<<"M rays, progress: "<<(samples*100.0f)/mTotalSamples<<" % \r"; 117 117 } 118 118 -
GTP/trunk/Lib/Vis/Preprocessing/src/SamplingStrategy.cpp
r2042 r2043 7 7 #include "RssTree.h" 8 8 #include "Mutation.h" 9 //#include "PerfTimer.h"9 #include "PerfTimer.h" 10 10 11 11 namespace GtpVisibilityPreprocessor { 12 12 13 //extern PerfTimer pvsTimer; 13 14 extern PerfTimer pvsTimer; 15 extern PerfTimer viewCellCastTimer; 14 16 15 17 //HaltonSequence SamplingStrategy::sHalton; … … 556 558 557 559 UpdateRatios(); 560 561 cout<<"view cell cast time:"<<viewCellCastTimer.TotalTime()<<" s"<<endl; 562 cout<<"pvs time:"<<pvsTimer.TotalTime()<<" s"<<endl; 563 //cout<<"obj time:"<<objTimer.TotalTime()<<" s"<<endl; 558 564 559 565 } -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r2023 r2043 25 25 #include "SceneGraph.h" 26 26 27 //#include "PerfTimer.h"27 #include "PerfTimer.h" 28 28 29 29 … … 39 39 40 40 41 //PerfTimer viewCellCastTimer;42 //PerfTimer pvsTimer;43 //PerfTimer objTimer;41 PerfTimer viewCellCastTimer; 42 PerfTimer pvsTimer; 43 PerfTimer objTimer; 44 44 45 45 // HACK … … 2700 2700 ViewCell::NewMail(); 2701 2701 2702 //viewCellCastTimer.Entry();2702 viewCellCastTimer.Entry(); 2703 2703 2704 2704 static ViewCellContainer viewCells; … … 2714 2714 } 2715 2715 2716 //viewCellCastTimer.Exit();2716 viewCellCastTimer.Exit(); 2717 2717 2718 2718 mSamplesStat.mViewCells += (int)viewCells.size(); … … 2733 2733 Intersectable *terminationObj; 2734 2734 2735 //objTimer.Entry();2735 objTimer.Entry(); 2736 2736 2737 2737 // obtain pvs entry (can be different from hit object) 2738 2738 terminationObj = ray.mTerminationObject; 2739 2739 2740 //objTimer.Exit();2741 2742 //pvsTimer.Entry();2740 objTimer.Exit(); 2741 2742 pvsTimer.Entry(); 2743 2743 2744 2744 ViewCellContainer::const_iterator it = viewCells.begin(); … … 2753 2753 } 2754 2754 2755 //pvsTimer.Exit();2755 pvsTimer.Exit(); 2756 2756 2757 2757 mSamplesStat.mPvsContributions += ray.mPvsContribution; -
GTP/trunk/Lib/Vis/Preprocessing/src/run_test_pompeii
r2035 r2043 10 10 PREFIX=../work/plots/osp-pompeii4-1e5 11 11 12 #$COMMAND -preprocessor=combined -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \13 #-rss_distributions=mutation+object_direction+spatial -view_cells_filter_max_size=1 \14 #-preprocessor_visibility_file=$PREFIX-i-mixed-b1-n4n.xml \15 #-preprocessor_stats=$PREFIX-i-mixed-b1-n4n.log \16 #-preprocessor_histogram_file=$PREFIX-i-mixed-b1-n4n.hlog12 $COMMAND -preprocessor=combined -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 13 -rss_distributions=mutation+object_direction+spatial -view_cells_filter_max_size=1 \ 14 -preprocessor_visibility_file=$PREFIX-i-mixed-b1-n4n.xml \ 15 -preprocessor_stats=$PREFIX-i-mixed-b1-n4n.log \ 16 -preprocessor_histogram_file=$PREFIX-i-mixed-b1-n4n.hlog 17 17 18 18 # # n - no origin mutation, q=2, reverse samples 19 20 # $COMMAND -preprocessor=sampling -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 21 # -preprocessor_visibility_file=$PREFIX-r-reference.xml \ 22 # -view_cells_filter_max_size=1 -preprocessor_stats=$PREFIX-r-reference.log \ 23 # -preprocessor_histogram_file=$PREFIX-r-reference.hlog 24 25 # $COMMAND -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 26 # -rss_distributions=direction -view_cells_filter_max_size=1 \ 27 # -preprocessor_visibility_file=$PREFIX-r-reference-global.xml \ 28 # -preprocessor_stats=$PREFIX-r-reference-global.log \ 29 # -preprocessor_histogram_file=$PREFIX-r-reference-global.hlog 30 31 32 ##### BVH measurements 19 33 20 34 # $COMMAND -preprocessor=combined -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ … … 25 39 # -preprocessor_histogram_file=$PREFIX-i-mixed-bvh-n4n.hlog 26 40 41 27 42 $COMMAND -preprocessor=sampling -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 28 -preprocessor_visibility_file=$PREFIX-r-reference.xml \ 29 -view_cells_filter_max_size=1 -preprocessor_stats=$PREFIX-r-reference.log \ 30 -preprocessor_histogram_file=$PREFIX-r-reference.hlog 43 -view_cells_use_kd_pvs- -af_use_kd_pvs- \ 44 -preprocessor_visibility_file=$PREFIX-r-bvh-reference.xml \ 45 -view_cells_filter_max_size=1 -preprocessor_stats=$PREFIX-r-bvh-reference.log \ 46 -preprocessor_histogram_file=$PREFIX-r-bvh-reference.hlog 31 47 32 48 $COMMAND -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 49 -view_cells_use_kd_pvs- -af_use_kd_pvs- \ 33 50 -rss_distributions=direction -view_cells_filter_max_size=1 \ 34 -preprocessor_visibility_file=$PREFIX-r-reference-global.xml \ 35 -preprocessor_stats=$PREFIX-r-reference-global.log \ 36 -preprocessor_histogram_file=$PREFIX-r-reference-global.hlog 51 -preprocessor_visibility_file=$PREFIX-r-bvh-reference-global.xml \ 52 -preprocessor_stats=$PREFIX-r-bvh-reference-global.log \ 53 -preprocessor_histogram_file=$PREFIX-r-bvh-reference-global.hlog 54 37 55 38 56 #mutation+object_direction+
Note: See TracChangeset
for help on using the changeset viewer.