This app is targeted at developers, or anyone curious about performance differences between OpenGL and Canvas. Specifically, it measures the performance of drawing 2D sprites explicitly using OpenGL ES 2.0 with a hybrid of Java and C, and drawing 2D sprites using Canvas with Java.
When you are done running a test, you can see a benchmark analysis of the performance by pressing the device's back button.
It is similar to Sprite Method Test by Chris Pruett, but it is updated for OpenGL ES 2.0. His Sprite Method Test runs the outdated ES 1.0, and is broken on Jelly Bean (because of tripple buffering).
This app works on all devices which support OpenGL ES 2.0.
This is ad-free and nag-free.
Specifically, this app measures the performance of drawing 2D sprites explicitly using OpenGL ES 2.0 with a hybrid of Java and C, and drawing 2D sprites using Canvas with Java.
On every frame:
The background color shifts slightly, pulsing between red and white.
Each sprite moves a random (Gaussian) amount. If the center of a sprite goes over an edge of the screen, the sprite moves to a random screen location.
The Canvas test uses a SurfaceView and Canvas.drawBitmap(). All the calculations are done in Java (using Random.nextGaussian() and Random.nextFloat()) on a float.
The OpenGL ES 2.0 tests use a GLSurfaceView in Java. Calculation is done in C (using drand48() and an inline C equivalent of Java's Gaussian algorithm) on a native float. Drawing is also done in C, using glDrawArrays(GL_POINTS, ...). C (NDK) methods are called every frame from Java through the JNI.
All tests have the identical overhead of profiling operations in Java.
The FPS information is about when frames are actually posted to the screen (technically, the SurfaceFlinger).
The Draw information is about the time it takes to issue (and glFlush() + glFinish(), in the OpenGL test) the drawing commands. It does not count the time to actually flip screen buffers.
The Push information (VBO only) is about the time it takes to push the vertex data to the GPU buffer. This will often be
Compare Sprite Draw Method is a free software application from the Components & Libraries subcategory, part of the Development category.
The app is currently available in English and it was last updated on 2012-07-29. The program can be installed on Android.
Compare Sprite Draw Method (version 1.0.0) is available for download from our website.
Just click the green Download button above to start. Until now the program was downloaded 0 times.
We already checked that the download link to be safe, however for your own protection we recommend that you scan the downloaded software with your antivirus.