Implement first pass at texture compile estimation

This commit is contained in:
Robert Osfield
2011-01-26 18:47:55 +00:00
parent a4f2cbe577
commit 373f3931e9
3 changed files with 37 additions and 10 deletions

View File

@@ -39,7 +39,6 @@ struct ClampedLinearCostFunction1D
double operator() (unsigned int input) const
{
OSG_NOTICE<<"ClampedLinearCostFunction1D::operator("<<input<<")"<<std::endl;
return _cost0 + _dcost_di * double(input<=_min_input ? 0u : input-_min_input);
}
double _cost0;
@@ -115,7 +114,7 @@ public:
CostPair estimateCompileCost(const osg::Geometry* geometry) const { return _geometryEstimator->estimateCompileCost(geometry); }
CostPair estimateDrawCost(const osg::Geometry* geometry) const { return _geometryEstimator->estimateDrawCost(geometry); }
CostPair estimateCompileCost(const osg::Texture* texture) const { return _textureEstimator->estimateDrawCost(texture); }
CostPair estimateCompileCost(const osg::Texture* texture) const { return _textureEstimator->estimateCompileCost(texture); }
CostPair estimateDrawCost(const osg::Texture* texture) const { return _textureEstimator->estimateDrawCost(texture); }
CostPair estimateCompileCost(const osg::Program* program) const { return _programEstimator->estimateCompileCost(program); }