What is OpenAphid-Engine?
At the development stage, developers can save the script and reload it on devices to see the changes instantly. No need to compile and re-deploy anymore.
Performance Benchmark Setup
We adopt a benchmark program introduced in a presentation of ngCore SDK. The program is modified a bit and implemented in Cocos2d-iPhone, ngCore and OpenAphid-Engine. The benchmark is composed by several parts, let’s describe them using APIs from OpenAphid-Engine:
Updates at 2012-04-28: code snippets were updated according to the API changes in v0.1 release.
A background image(Size 1024x1024)
1 2 3
A frame-by-frame animation(5 frames)
The animation is made from a 320x64 size image, which is originally included in a sample project of ngCore SDK:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Tank moves per frame inside the screen
Dozens of small tanks are added to the scene. Each of them has a random initial position and changes it during each frame.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
Apply animation and add tanks to the scene
After applying the animation, the size of tank sprite is 64x64.
1 2 3 4 5 6 7 8 9 10
Run the scene
A screenshot of the benchmark running with 100 tanks:
The same benchmark is implemented in Cocos2d-iPhone, ngCore and OpenAphid-Engine. We tried to run it using the latest stable version of each:
- Cocos2d-iPhone 1.0.1. CCSpriteBatchNode is not used to make sure the benchmark share the same behavior in each framework. CC_DIRECTOR_FAST_FPS is also turned off for the same reason. CC_DIRECTOR_FPS_INTERVAL is set to 1.0f.
- ngCore 1.6-20120209. The performance of ngCore has improved a lot in this latest release than v0.9 which is used in the presentation.
- OpenAphid-Engine. An internal stable release is used to run the test.
The benchmark is performed on an iPod Touch 3rd generation (32GB). The hardware specification can be found from its wikipedia page.
The FPS data are recorded for running different number of tanks on each framework. The FPS of ngCore is not consistent, so we tracked both the high and low FPS data.
Updates at 2012-04-28: benchmark results are updated by using OpenAphid-Engine v0.1 release.
When will OpenAphid-Engine be released?
OpenAphid-Engine is still under development. We’re working hard to make the first public release available in the middle of April. All source codes will be public then. Please feel free to mail us with your questions and suggestions via openaphid At gmail.com. We’d appreciate it for your kind help.