trivial: replace some very small constant numbers with "F_ALMOST_ZERO".
parent
478edbee8c
commit
bab5ef916c
|
|
@ -1364,7 +1364,7 @@ F32 LLFace::getTextureVirtualSize()
|
|||
F32 cos_angle_to_view_dir;
|
||||
BOOL in_frustum = calcPixelArea(cos_angle_to_view_dir, radius);
|
||||
|
||||
if (mPixelArea < 0.0001f || !in_frustum)
|
||||
if (mPixelArea < F_ALMOST_ZERO || !in_frustum)
|
||||
{
|
||||
setVirtualSize(0.f) ;
|
||||
return 0.f;
|
||||
|
|
|
|||
|
|
@ -3699,7 +3699,7 @@ void LLTexturePipelineTester::updateStablizingTime()
|
|||
{
|
||||
F32 t = mEndStablizingTime - mStartStablizingTime ;
|
||||
|
||||
if(t > 0.0001f && (t - mTotalStablizingTime) < 0.0001f)
|
||||
if(t > F_ALMOST_ZERO && (t - mTotalStablizingTime) < F_ALMOST_ZERO)
|
||||
{
|
||||
//already stablized
|
||||
mTotalStablizingTime = LLImageGL::sLastFrameTime - mStartStablizingTime ;
|
||||
|
|
@ -3824,7 +3824,7 @@ LLMetricPerformanceTester::LLTestSession* LLTexturePipelineTester::loadTestSessi
|
|||
//time
|
||||
F32 start_time = (*log)[label]["StartFetchingTime"].asReal() ;
|
||||
F32 cur_time = (*log)[label]["Time"].asReal() ;
|
||||
if(start_time - start_fetching_time > 0.0001f) //fetching has paused for a while
|
||||
if(start_time - start_fetching_time > F_ALMOST_ZERO) //fetching has paused for a while
|
||||
{
|
||||
sessionp->mTotalFetchingTime += total_fetching_time ;
|
||||
sessionp->mTotalGrayTime += total_gray_time ;
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ S32 LLVOTree::sLODVertexCount[sMAX_NUM_TREE_LOD_LEVELS];
|
|||
S32 LLVOTree::sLODIndexOffset[sMAX_NUM_TREE_LOD_LEVELS];
|
||||
S32 LLVOTree::sLODIndexCount[sMAX_NUM_TREE_LOD_LEVELS];
|
||||
S32 LLVOTree::sLODSlices[sMAX_NUM_TREE_LOD_LEVELS] = {10, 5, 4, 3};
|
||||
F32 LLVOTree::sLODAngles[sMAX_NUM_TREE_LOD_LEVELS] = {30.f, 20.f, 15.f, 0.00001f};
|
||||
F32 LLVOTree::sLODAngles[sMAX_NUM_TREE_LOD_LEVELS] = {30.f, 20.f, 15.f, F_ALMOST_ZERO};
|
||||
|
||||
F32 LLVOTree::sTreeFactor = 1.f;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue