News:Performance evaluation for 2D frameworks

来自Starling中文站
跳转到: 导航, 搜索

Hi all,

Today I did a test to show the performance of the Stage3D for 2D frameworks and Bitmap animations. The test is a test project provided by the ESDOT (click here), the original project already contains part of the bitmap animation and Starling, I do further performance optimization, and add ND2D and Genome2D test cases.

Note: This data is for developers to reference, the purpose of the evaluation is not to evaluate the pros and cons of the framework (in limited cases, enough to cover all cases).Overall, each framework has its own advantages.You can consider various factors, and select an appropriate framework.

Test case download : here

Starling-fps.png

Test animation: each bear repeating crawling action, and each bear at the same time also to the left or right to move.

2D frameworks (Starling, ND2D and Genome2D) are using the latest version on GitHub (end of 2012-6-20), testing two platforms: the Lenovo T410 (Windows 7) and the iPad (iOS 5 ).

Compiled using the Flex SDK 4.6 and AIR SDK 3.3.

Metrics: full frame for 30 FPS (mobile devices test for release packing mode, to ensure the best performance).

目录

Test 1:Lenovo T410 (Windows 7)

This is a Lenove notebook, performance medium, turn on hardware acceleration. Test results:

Testresult1.png

It can be seen from the results on a PC using bitmap copyPixes efficiency than keep replacing bitmapData or higher; while Stage3D 2D framework as a whole are to the power performance of more than a bitmap animation method.Starling's QuadBatch is very powerful and occupy the best performance in the diagram above. ND2D the batch mode is much less certain. Genome2D still showed performance is tough, quite a batch capacity and Starling.

Test 2: The iPad 1 (iOS 5)

Rendering mode settings: bitmap rendering <renderMode>gpu</renderMode>, three 2D framework with <renderMode>direct</ renderMode>.

Result2.png

Can be seen from this figure, in iOS replace bitmapData more efficient than copyPixels the way (and PC test results just vice versa). Stage3D is still the best choice on the performance of Starling and Genome2D, performance in this test are beyond the traditional bitmap mode. While ND2D did not seem on mobile devices to achieve good optimization, the performance is relatively inferior. Starling's MovieClip mode also had a strong performance in this test. Using batch mode, Starling, and Genome2D performance fairly, both accounted for the performance king of the throne.

Test 3:iPad 2 (iOS 5)

Result3.png


Supplements

We modified the material and test code, the new test cases and test cases above are different. The above use case is a single animation, the following use cases will use the eight animation (7 kinds of fish animation, animated monkey species).

Starling-fps2.png

Test project source code: MobileRenderTestsV2

Test 4:Multiple Animations and Lenovo T410 (Windows 7)

Result:

Result4.png

Test 5:Multiple Animations and iPad 1 (iOS 5)

Result:

Result5.png

Enjoy !

个人工具
名字空间

变换
操作
导航
Starling中文资料
Starling原创教程
论坛
友链
工具箱