Commit 2725e781 authored by NiranV's avatar NiranV
Browse files

Fixed: Huge VRAM usage difference when touching shadow resolution controls...

Fixed: Huge VRAM usage difference when touching shadow resolution controls after starting the Viewer. Saves up to 600MB+ depending on shadow resolution.
parent 54bf93a5
......@@ -1173,7 +1173,7 @@ void LLPipeline::allocateShadowMaps(bool allocate)
//BD - Resizing it should be sufficient.
mShadow[i].resize(U32(scale.mV[i]), U32(scale.mV[i]));
mShadowOcclusion[i].resize(U32(scale.mV[i]), U32(scale.mV[i]));
mShadowOcclusion[i].resize(U32(scale.mV[i]) / occlusion_divisor, U32(scale.mV[i]) / occlusion_divisor);
}
}
}
......@@ -1194,7 +1194,7 @@ void LLPipeline::allocateShadowMaps(bool allocate)
//BD - Resizing it should be sufficient.
mShadow[i].resize(U32(proj_scale.mV[i - 4]), U32(proj_scale.mV[i - 4]));
mShadowOcclusion[i].resize(U32(proj_scale.mV[i - 4]), U32(proj_scale.mV[i - 4]));
mShadowOcclusion[i].resize(U32(proj_scale.mV[i - 4]) / occlusion_divisor, U32(proj_scale.mV[i - 4]) / occlusion_divisor);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment