From 95ab15195c90617ea9d2a3412fcfefd012cd2244 Mon Sep 17 00:00:00 2001 From: zhangbin Date: Mon, 31 Mar 2014 10:44:48 +0800 Subject: [PATCH] Optimize the performance of BlurSpriteTest in Shader Sprite. --- tests/cpp-tests/Classes/ShaderTest/ShaderTest2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cpp-tests/Classes/ShaderTest/ShaderTest2.cpp b/tests/cpp-tests/Classes/ShaderTest/ShaderTest2.cpp index 0b4ddaa627..35dde22701 100644 --- a/tests/cpp-tests/Classes/ShaderTest/ShaderTest2.cpp +++ b/tests/cpp-tests/Classes/ShaderTest/ShaderTest2.cpp @@ -302,7 +302,7 @@ void BlurSprite::buildCustomUniforms() _pixelSize = Point(1/s.width, 1/s.height); _samplingRadius = 0; - setBlurSize(10.0f); + setBlurSize(3.0f); auto program = getShaderProgram(); pixelSizeLocation = program->getUniformLocation("onePixelSize"); coefficientLocation = program->getUniformLocation("gaussianCoefficient");