From 21c9b74a6867a01ad6388a2bfaa178350f32b212 Mon Sep 17 00:00:00 2001 From: samcake Date: Fri, 12 Feb 2016 17:07:53 -0800 Subject: [PATCH] Cleaning up performance timers which are taking too much time... --- libraries/render/src/render/CullTask.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libraries/render/src/render/CullTask.cpp b/libraries/render/src/render/CullTask.cpp index cb37b566ed..cf4e825ea3 100644 --- a/libraries/render/src/render/CullTask.cpp +++ b/libraries/render/src/render/CullTask.cpp @@ -227,17 +227,17 @@ void CullSpatialSelection::run(const SceneContextPointer& sceneContext, const Re _args(pargs), _renderDetails(renderDetails) { - _eyePos = _args->_viewFrustum->getPosition(); - + // FIXME: Keep this code here even though we don't use it yet + /*_eyePos = _args->_viewFrustum->getPosition(); float a = glm::degrees(_args->_viewFrustum->getAccuracyAngle(_args->_sizeScale, _args->_boundaryLevelAdjust)); auto angle = std::min(glm::radians(45.0f), a); // no worse than 45 degrees angle = std::max(glm::radians(1.0f / 60.0f), a); // no better than 1 minute of degree auto tanAlpha = tan(angle); _squareTanAlpha = (float)(tanAlpha * tanAlpha); + */ } bool frustumTest(const AABox& bound) { - PerformanceTimer perfTimer("frustumItemTest"); if (_args->_viewFrustum->boxInFrustum(bound) == ViewFrustum::OUTSIDE) { _renderDetails._outOfView++; return false; @@ -246,7 +246,6 @@ void CullSpatialSelection::run(const SceneContextPointer& sceneContext, const Re } bool solidAngleTest(const AABox& bound) { - PerformanceTimer perfTimer("solidAngleItemTest"); // FIXME: Keep this code here even though we don't use it yet //auto eyeToPoint = bound.calcCenter() - _eyePos; //auto boundSize = bound.getDimensions();