- Timestamp:
- 12/20/05 20:33:42 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/RenderSimulator.cpp
r468 r473 26 26 } 27 27 28 RenderSimulator::RenderSimulator() 28 RenderSimulator::RenderSimulator(ViewCellsManager *viewCellsManager): 29 Renderer(viewCellsManager) 29 30 {} 30 31 31 RenderSimulator::RenderSimulator(float objRenderCost, 32 RenderSimulator::RenderSimulator(ViewCellsManager *viewCellsManager, 33 float objRenderCost, 32 34 float vcOverhead, 33 35 float moveSpeed): 36 Renderer(viewCellsManager), 34 37 mObjRenderCost(objRenderCost), 35 38 mVcOverhead(vcOverhead), … … 75 78 // compute render time of PVS times probability that view point is in view cell 76 79 const float vcCost = pInVc * mViewCellsManager->GetRendercost(vc, mObjRenderCost); 77 80 78 81 // crossing the border of a view cell is depending on the move speed 79 82 // and the probability that a view cell border is crossed … … 82 85 //-- update statistics 83 86 renderTime += vcCost; 84 87 85 88 if (vcCost > mSimulationStatistics.maxCost) 86 89 mSimulationStatistics.maxCost = vcCost;
Note: See TracChangeset
for help on using the changeset viewer.