Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

minor changes

  • Loading branch information...
commit c22259f367973fe32077107e28a480f2c3ea71ca 1 parent f328d87
@LearnCocos2D LearnCocos2D authored
View
6 Cocos2D-ARC-Performance-Test/Cocos2D-Performance-Test/HelloWorldLayer.m
@@ -78,12 +78,12 @@ -(void) test:(ccTime)delta
[pt test:kkPerformanceTestARCvsMRC_Autorelease];
[pt test:kkPerformanceTestARCvsMRC_Algorithm];
+ [pt test:KKPerformanceTestTextureLoading];
+ [pt test:kkPerformanceTestNodeHierarchy];
+ [pt test:kkPerformanceTestArray];
[pt test:KKPerformanceTestObjectCreation];
[pt test:KKPerformanceTestMessaging];
[pt test:kkPerformanceTestObjectCompare];
- [pt test:kkPerformanceTestArray];
- //[pt test:KKPerformanceTestTextureLoading];
- [pt test:kkPerformanceTestNodeHierarchy];
[pt test:kkPerformanceTestArithmetic];
[pt test:kkPerformanceTestMemory];
[pt test:KKPerformanceTestIO];
View
14 Cocos2D-ARC-Performance-Test/Cocos2D-Performance-Test/PerfTester.mm
@@ -118,7 +118,7 @@ - (void)test:(KKPerformanceTestType)testType
k10KIterationTestCount = 10000;
k1KIterationTestCount = 1000;
k100IterationTestCount = 100;
- k10IterationTestCount = 10;
+ k10IterationTestCount = 4;
}
Test testSels[100];
@@ -294,25 +294,27 @@ - (void)test:(KKPerformanceTestType)testType
{ "PVRTC4.pvr.ccz\0", @selector( testLoadTexture_PVRTC4_pvrccz ), },
{ "PVRTC4.pvr.gz\0", @selector( testLoadTexture_PVRTC4_pvrgz ), },
- { "RGB565.jpg\0", @selector( testLoadTexture_RGB565_jpg ), },
+ /*
+ //{ "RGB565.jpg\0", @selector( testLoadTexture_RGB565_jpg ), },
{ "RGB565.png\0", @selector( testLoadTexture_RGB565_png ), },
{ "RGB565.pvr\0", @selector( testLoadTexture_RGB565_pvr ), },
{ "RGB565.pvr.ccz\0", @selector( testLoadTexture_RGB565_pvrccz ), },
{ "RGB565.pvr.gz\0", @selector( testLoadTexture_RGB565_pvrgz ), },
- { "RGBA4444.jpg\0", @selector( testLoadTexture_RGBA4444_jpg ), },
+ //{ "RGBA4444.jpg\0", @selector( testLoadTexture_RGBA4444_jpg ), },
{ "RGBA4444.png\0", @selector( testLoadTexture_RGBA4444_png ), },
{ "RGBA4444.pvr\0", @selector( testLoadTexture_RGBA4444_pvr ), },
{ "RGBA4444.pvr.ccz\0", @selector( testLoadTexture_RGBA4444_pvrccz ), },
{ "RGBA4444.pvr.gz\0", @selector( testLoadTexture_RGBA4444_pvrgz ), },
- { "RGBA5551.jpg\0", @selector( testLoadTexture_RGBA5551_jpg ), },
+ //{ "RGBA5551.jpg\0", @selector( testLoadTexture_RGBA5551_jpg ), },
{ "RGBA5551.png\0", @selector( testLoadTexture_RGBA5551_png ), },
{ "RGBA5551.pvr\0", @selector( testLoadTexture_RGBA5551_pvr ), },
{ "RGBA5551.pvr.ccz\0", @selector( testLoadTexture_RGBA5551_pvrccz ), },
{ "RGBA5551.pvr.gz\0", @selector( testLoadTexture_RGBA5551_pvrgz ), },
-
- { "RGBA8888.jpg\0", @selector( testLoadTexture_RGBA8888_jpg ), },
+ */
+
+ //{ "RGBA8888.jpg\0", @selector( testLoadTexture_RGBA8888_jpg ), },
{ "RGBA8888.png\0", @selector( testLoadTexture_RGBA8888_png ), },
{ "RGBA8888.pvr\0", @selector( testLoadTexture_RGBA8888_pvr ), },
{ "RGBA8888.pvr.ccz\0", @selector( testLoadTexture_RGBA8888_pvrccz ), },
View
16 Cocos2D-ARC-Performance-Test/Cocos2D-Performance-Test/PerfTester_TextureLoading.mm
@@ -135,7 +135,7 @@ -(void) testLoadTexture_RGB565_jpg
{
CCTextureCache* cache = [CCTextureCache sharedTextureCache];
- BEGIN( k10IterationTestCount )
+ BEGIN( 1 )
CCTexture2D* tex = [cache addImage:@"textureatlas_RGB565.jpg"];
[cache removeTexture:tex];
END()
@@ -183,7 +183,7 @@ -(void) testLoadTexture_RGBA4444_jpg
{
CCTextureCache* cache = [CCTextureCache sharedTextureCache];
- BEGIN( k10IterationTestCount )
+ BEGIN( 1 )
CCTexture2D* tex = [cache addImage:@"textureatlas_RGBA4444.jpg"];
[cache removeTexture:tex];
END()
@@ -232,7 +232,7 @@ -(void) testLoadTexture_RGBA5551_jpg
{
CCTextureCache* cache = [CCTextureCache sharedTextureCache];
- BEGIN( k10IterationTestCount )
+ BEGIN( 1 )
CCTexture2D* tex = [cache addImage:@"textureatlas_RGBA5551.jpg"];
[cache removeTexture:tex];
END()
@@ -281,7 +281,7 @@ -(void) testLoadTexture_RGBA8888_jpg
{
CCTextureCache* cache = [CCTextureCache sharedTextureCache];
- BEGIN( k10IterationTestCount )
+ BEGIN( 1 )
CCTexture2D* tex = [cache addImage:@"textureatlas_RGBA8888.jpg"];
[cache removeTexture:tex];
END()
@@ -290,7 +290,7 @@ -(void) testLoadTexture_RGBA8888_png
{
CCTextureCache* cache = [CCTextureCache sharedTextureCache];
- BEGIN( k100IterationTestCount )
+ BEGIN( k100IterationTestCount / 3 )
CCTexture2D* tex = [cache addImage:@"textureatlas_RGBA8888.png"];
[cache removeTexture:tex];
END()
@@ -299,7 +299,7 @@ -(void) testLoadTexture_RGBA8888_pvr
{
CCTextureCache* cache = [CCTextureCache sharedTextureCache];
- BEGIN( k100IterationTestCount )
+ BEGIN( k100IterationTestCount / 3 )
CCTexture2D* tex = [cache addImage:@"textureatlas_RGBA8888.pvr"];
[cache removeTexture:tex];
END()
@@ -308,7 +308,7 @@ -(void) testLoadTexture_RGBA8888_pvrccz
{
CCTextureCache* cache = [CCTextureCache sharedTextureCache];
- BEGIN( k100IterationTestCount )
+ BEGIN( k100IterationTestCount / 3 )
CCTexture2D* tex = [cache addImage:@"textureatlas_RGBA8888.pvr.ccz"];
[cache removeTexture:tex];
END()
@@ -317,7 +317,7 @@ -(void) testLoadTexture_RGBA8888_pvrgz
{
CCTextureCache* cache = [CCTextureCache sharedTextureCache];
- BEGIN( k100IterationTestCount )
+ BEGIN( k100IterationTestCount / 3 )
CCTexture2D* tex = [cache addImage:@"textureatlas_RGBA8888.pvr.gz"];
[cache removeTexture:tex];
END()
View
5 Cocos2D-ARC-Performance-Test/README
@@ -1,7 +1,6 @@
URL for the iDevBlogADay article discussing this project:
-http://www.learn-cocos2d.com/2011/11/depth-ios-cocos2d-performance-analysis-test-project/
-
+http://www.learn-cocos2d.com/2013/03/confirmed-arc-slow
Cocos2D version used:
- cocos2d-iphone v1.0.1
+ cocos2d-iphone v2.1 (rc0a)
Please sign in to comment.
Something went wrong with that request. Please try again.