Skip to content

Commit 3213848

Browse files
author
Thayer J Andrews
committed
CCEffectsTest - More sprites in the performance test plus stacks of stacks
1 parent 9b246d0 commit 3213848

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cocos2d-ui-tests/tests/CCEffectsTest.m

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ -(void)setupStackTest
942942
[CCEffectBrightness effectWithBrightness:0.25f],
943943
[CCEffectContrast effectWithContrast:1.0f],
944944
[CCEffectPixellate effectWithBlockSize:8.0f],
945-
[CCEffectSaturation effectWithSaturation:-1.0f],
945+
[CCEffectSaturation effectWithSaturation:1.0f],
946946
[CCEffectHue effectWithHue:90.0f],
947947
[CCEffectGlass effectWithShininess:1.0f refraction:0.75f refractionEnvironment:refractEnvironment reflectionEnvironment:reflectEnvironment],
948948
[CCEffectRefraction effectWithRefraction:0.75f environment:refractEnvironment],
@@ -956,7 +956,9 @@ -(void)setupStackTest
956956
sprite.position = ccp(0.5f, 0.5f);
957957
sprite.scale = 0.5f;
958958

959-
sprite.effect = [CCEffectStack effects:effects[7], effects[4], nil];
959+
CCEffectStack *stack1 = [CCEffectStack effects:effects[7], effects[6], nil];
960+
CCEffectStack *stack2 = [CCEffectStack effects:effects[5], effects[4], nil];
961+
sprite.effect = [CCEffectStack effects:stack1, stack2, nil];
960962

961963
sprite.normalMapSpriteFrame = [CCSpriteFrame frameWithImageNamed:@"Images/ShinyBallNormals.png"];
962964
sprite.colorRGBA = [CCColor colorWithRed:0.75f green:0.75f blue:0.75f alpha:0.75f];
@@ -1026,7 +1028,7 @@ -(void)setupPerformanceTest
10261028

10271029
CGSize containerSize = self.contentNode.contentSizeInPoints;
10281030

1029-
const float footprintScale = 1.1f;
1031+
const float footprintScale = 0.5f;
10301032

10311033
NSString *spriteImage = @"Images/r1.png";
10321034
CCSprite *sprite = [CCSprite spriteWithImageNamed:spriteImage];

0 commit comments

Comments
 (0)