Ignore:
Timestamp:
11/15/05 15:57:15 (19 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/RenderSimulator.h

    r411 r414  
    33 
    44#include "common.h" 
     5#include "Statistics.h" 
    56 
    67class BspTree; 
     
    910class KdLeaf; 
    1011 
     12class SimulationStatistics: public StatisticsBase 
     13{ 
     14public: 
     15        /// view cell with the biggest "cost" 
     16        float maxCost; 
     17        /// view cell with the minimal "cost" 
     18    float minCost; 
     19        /// average render time 
     20        float avgRenderTime; 
     21        /// average render time with the overhead when crossing view cells 
     22        float avgRtWithoutOverhead; 
     23   
     24        void Reset()  
     25        { 
     26                maxCost = 0; 
     27                minCost = 999999; 
     28                avgRenderTime = 0; 
     29                avgRtWithoutOverhead = 0; 
     30        } 
     31 
     32        void Print(ostream &app) const; 
     33 
     34        friend ostream &operator<<(ostream &s, const SimulationStatistics &stat)  
     35        { 
     36                stat.Print(s); 
     37                return s; 
     38        }   
     39}; 
     40 
    1141/** Simulated rendering using a simple render heuristics. Used to evaluate the  
    1242        quality of the view cell partition. 
     
    1444class RenderSimulator 
    1545{ 
     46 
    1647public: 
    1748        RenderSimulator(); 
     
    2556        /// move speed of player 
    2657        float mMoveSpeed; 
     58 
     59        SimulationStatistics mStat; 
    2760}; 
    2861 
Note: See TracChangeset for help on using the changeset viewer.