Ignore:
Timestamp:
01/20/08 00:43:31 (16 years ago)
Author:
bittner
Message:

change to USE_BIT_PVS for timing tests: Warning visualization will probably not work correctly

Location:
GTP/trunk/Lib/Vis/Preprocessing/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/Makefile

    r2616 r2617  
    11############################################################################# 
    22# Makefile for building: preprocessor 
    3 # Generated by qmake (2.00a) (Qt 4.1.2) on: ne 20. I 00:34:03 2008 
     3# Generated by qmake (2.00a) (Qt 4.1.2) on: ne 20. I 00:39:42 2008 
    44# Project:  preprocessor.pro 
    55# Template: app 
     
    6363        $(MAKE) -f $(MAKEFILE).Debug uninstall 
    6464 
    65 Makefile: preprocessor.pro  C:/Qt/4.1.2/mkspecs/win32-msvc.net\qmake.conf C:/Qt/4.1.2/mkspecs/qconfig.pri \ 
     65Makefile: preprocessor.pro  C:/Qt/4.1.2/mkspecs/win32-msvc2005\qmake.conf C:/Qt/4.1.2/mkspecs/qconfig.pri \ 
    6666                C:\Qt\4.1.2\mkspecs\features\qt_config.prf \ 
    6767                C:\Qt\4.1.2\mkspecs\features\exclusive_builds.prf \ 
  • GTP/trunk/Lib/Vis/Preprocessing/src/PvsDefinitions.h

    r2616 r2617  
    77//////////// 
    88//-- typedefs 
     9//$$ 19.1. 2008 test for speed 
     10#define USE_BIT_PVS 
    911 
    1012 
  • GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp

    r2615 r2617  
    13671367        float renderCost = 0; 
    13681368 
     1369#ifndef USE_BIT_PVS 
    13691370        if (mShowDistanceWeightedPvs) 
    13701371        { 
     
    13791380                return vc->GetPvs().mStats.mWeightedTriangles; 
    13801381        } 
     1382#else 
     1383        return 0.0f; 
     1384#endif 
    13811385} 
    13821386#endif 
  • GTP/trunk/Lib/Vis/Preprocessing/src/SG08/run_test_arena

    r2610 r2617  
    22 
    33#COMMAND="./release/preprocessor.exe -preprocessor_quit_on_finish+" 
    4 COMMAND="../scripts/preprocessor.sh -preprocessor_quit_on_finish+ -preprocessor_use_gl_renderer- -preprocessor_evaluate_filter- -preprocessor_detect_empty_viewspace+ -total_samples=1000000000" 
     4 
     5# NORMAL TEST 
     6#COMMAND="../scripts/preprocessor.sh -preprocessor_quit_on_finish+ -preprocessor_use_gl_renderer- -preprocessor_evaluate_filter- -preprocessor_detect_empty_viewspace+ -total_samples=1000000000  -samples_per_pass=1000000 -total_samples=1000000000 -view_cells_use_kd_pvs+ -af_use_kd_pvs+ -kd_pvs_area=1e-5" 
     7 
     8#TIME TERMINATION 
     9COMMAND="../scripts/preprocessor.sh -preprocessor_quit_on_finish+ -preprocessor_use_gl_renderer- -preprocessor_evaluate_filter- -preprocessor_detect_empty_viewspace+ -total_samples=1000000000  -samples_per_pass=1000000 -total_samples=4000000000 -total_time=7200 -view_cells_use_kd_pvs+ -af_use_kd_pvs+ -kd_pvs_area=1e-5" 
    510 
    611 
     
    813VIEWCELLS=../data/Arena/viewcells-5000.xml.gz 
    914 
    10 PREFIX=../work/plots/osp-arena-SG08a 
     15PREFIX=../work/plots/osp-arena-SG08a-TIME 
    1116 
    1217# $COMMAND -preprocessor=combined -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 
     
    1823# # n - no origin mutation, q=2, reverse samples 
    1924 
    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 
    2425 
    2526$COMMAND -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 
     
    2829 -preprocessor_stats=$PREFIX-r-reference-global.log \ 
    2930 -preprocessor_histogram_file=$PREFIX-r-reference-global.hlog 
     31 
     32$COMMAND -preprocessor=sampling -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 
     33-preprocessor_visibility_file=$PREFIX-r-reference.xml \ 
     34-view_cells_filter_max_size=1 -preprocessor_stats=$PREFIX-r-reference.log \ 
     35-preprocessor_histogram_file=$PREFIX-r-reference.hlog 
    3036 
    3137# -total_samples=500000000000 -total_time=12208 \ 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r2615 r2617  
    24032403 
    24042404        const int numTriangles = kdObj->ComputeNumTriangles(); 
    2405  
     2405#ifndef USE_BIT_PVS 
    24062406        vc->GetPvs().mStats.mDistanceWeightedTriangles += f * numTriangles;  
    24072407        vc->GetPvs().mStats.mDistanceWeightedPvs += f ; 
    24082408        vc->GetPvs().mStats.mWeightedTriangles += numTriangles; 
     2409#endif 
    24092410} 
    24102411 
     
    25952596        if (1)  
    25962597                // tmp matt: don't use when origin objects are not accounted for, currently the second ray is lost!! 
    2597                 //!lastVssRay || 
    2598                 //!(ray.mOrigin == lastVssRay->mTermination) || 
    2599                 //!(ray.mTermination == lastVssRay->mOrigin))  
    2600         { 
     2598          // $$JB: reenabled again - should use the same viewcells for the next ray ray if 
     2599          // it goes in the oposite direction 
     2600//      if (!lastVssRay || 
     2601//              !(ray.mOrigin == lastVssRay->mTermination) || 
     2602//              !(ray.mTermination == lastVssRay->mOrigin))  
     2603          { 
    26012604                viewCells.clear(); 
    26022605 
     
    26042607                CastLineSegment(origin, termination, viewCells); 
    26052608                lastVssRay = &ray; 
    2606         } 
     2609          }  
    26072610 
    26082611#ifdef USE_PERFTIMER   
     
    26282631 
    26292632#ifdef USE_PERFTIMER   
    2630         objTimer.Entry(); 
     2633        //      objTimer.Entry(); 
    26312634#endif 
    26322635        // obtain pvs entry (can be different from hit object) 
     
    26342637 
    26352638#ifdef USE_PERFTIMER   
    2636         objTimer.Exit(); 
    2637  
     2639        //      objTimer.Exit(); 
    26382640        pvsTimer.Entry(); 
    26392641#endif 
Note: See TracChangeset for help on using the changeset viewer.