Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.

Performance Tests of v0.9.0-beta

Environment:

  • using DisplayLink director
  • iPod Touch 2nd gen
  • firmware SDK 3.1.2 GM
  • cocos2d for iPhone v0.9.0-beta
  • cocos2d compiled in Release mode

FPS:

  • FPS means Frames Per Second
  • The maximum FPS is 60 (Fastest possible speed)

Particle Tests

Tests

  • A particle size = 4 pixels
  • B particle size = 8 pixels
  • C particle size = 32 pixels
  • D particle size = 64 pixels

Subtests

  1. PointParticleSystem using a 32-bit texture (PNG)
  2. PointParticleSystem using a 16-bit texture (PNG)
  3. PointParticleSystem using a 4-bit texture (PVRTC)
  4. QuadParticle System using a 32-bit texture (PNG)
  5. QuadParticle System using a 16-bit texture (PNG)
  6. QuadParticle System using a 4-bit texture (PVRTC)

Results

1000 particles
1 2 3 4 5 6
A60 60 60 60 60 60
B60 60 60 60 60 60
C~27~27~45~25~27~45
D~10~10~15~10~10~15
1500 particles
1 2 3 4 5 6
A60 60 60 60 60 60
B60 60 60 60 60 60
C~18~20~32~18~20~32
D~7 ~7 ~10~7 ~7 ~10
2000 particles
1 2 3 4 5 6
A60 60 60 60 60 60
B60 60 60 ~52~5360
C~15~15~24~15~15~24
D~5 ~5 ~8 ~5 ~5 ~8
2500 particles
1 2 3 4 5 6
A60 60 60 ~57~57~59
B~43~4560 ~42~45~59
C~12~12~20~12~12~20
D~4 ~4 ~6 ~4 ~4 ~6

Analysis

v0.9.0-beta seems to be as fast as v0.8.2 In some tests, QuadParticleSystem seems to be a little bit faster than v0.8.2 because now the VBO is updated with a more efficient method. Issue 661

Sprite Tests

Tests

  • A set randomly the position of the sprites. All the positions are inside of the screen
  • B set randomly the position / scale of the sprites. All the positions are inside of the screen
  • C set randomly the position / scale / rotation of the sprites. All the positions are inside of the screen
  • D All sprites are rendered outside the screen
  • E 80% of the sprites are positioned outside the screen. The other 20% is inside the screen
  • F Perform transform Scale and Rotate actions to all sprites. 100% of the sprites inside the screen
  • G Perform transform Scale and Rotate actions to all sprites. 20% of the sprites inside the screen

Subtests

  1. 1 PNG sprite of 52×139 pixels (32-bit texture)
  2. A PNG atlas of 1 sprite of 52×139 pixels (32-bit texture)
  3. A PNG atlas of 1 sprite of 52×139 pixels (16-bit texture)
  4. A PVRTC atlas of 1 sprite of 52×139 pixels (4-bit texture)
  5. 14 PNG sprites of 85 x 121 each (32-bit texture)
  6. 1 PNG atlas of 14 sprites of 85 x 121 each (32-bit texture)
  7. 1 PNG atlas of 14 sprites of 85 x 121 each (16-bit texture)
  8. 1 PVRTC atlas of 14 sprites of 85×121 each (4-bit texture)
  9. 64 PNG sprites of 32×32 each (32-bit Texture)
  10. 1 PNG atlas of 64 sprites of 32×32 each (32-bit Texture)
  11. 1 PNG atlas of 64 sprites of 32×32 each (16-bit Texture)
  12. 1 PVRTC atlas of 64 sprites of 32×32 each (4-bit texture)

Results

250 sprites
1 2 3 4 5 6 7 8 9 10 11 12
A~16~17~20~22~11~12~13~16~5960 60 60
B~16~17~20~21~12~13~15~17~5760 60 60
C~16~17~18~21~12~12~13~15~4960 60 60
D~6060 60 60 ~6060 60 60 ~6060 60 60
E~6060 60 60 ~44~48~5160 ~6060 60 60
F~22~24~25~30~17~17~20~22~4260 60 60
G~4560 60 60 ~4360 60 60 ~4360 60 60
450 sprites
1 2 3 4 5 6 7 8 9 10 11 12
A~9 ~9 ~10~13~6 ~6 ~7 ~8 ~38~45~5160
B~9 ~9 ~10~13~6 ~6 ~7 ~8 ~36~42~50~55
C~8 ~8 ~9 ~11~6 ~6 ~6 ~8 ~30~42~44~51
D~4660 60 60 ~4360 60 60 ~4360 60 60
E~37~41~45~55~25~27~32~37~4160 60 60
F~13~15~15~17~10~10~11~13~2560 60 60
G~27~50~51~60~27~40~45~50~2760 60 60
1000 sprites
1 2 3 4 5 6 7 8 9 10 11 12
A ~19~24~26~32
B ~19~21~25~30
C ~15~21~21~25
D ~2160 60 60
E ~2160 60 60
F ~12~31~34~35
G ~13~38~39~40
1500 sprites
1 2 3 4 5 6 7 8 9 10 11 12
A ~13~17~18~21
B ~13~15~17~20
C ~10~14~16~18
D ~1560 60 60
E ~1460 60 60
F ~8 ~23~24~24
G ~9 ~27~27~28

Analysis

v0.9.0-beta seems to be a bit slower than v0.8.2, specially in the F and G tests. Probably the actions are a little bit slower. Some tests perform up to 5% faster, while other tests perform up to 10% slower

perf_test/0_9_0_beta.txt · Last modified: 2009/12/20 23:33 by manucorporat
Trace: sfx_gfx sprites effects 0_99_0_rc download particles 0_99_5 0_99_4 0_99_1 0_9_0_beta
Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0