

Enjoy millions of the latest Android apps, games, music, movies, TV, books, magazines & more. Anytime, anywhere, across your devices.
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.
More details:
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.
Statistics:
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 <.5ms (which rounds to 0.000s) per frame. When using the non-VBO OpenGL test, this time is essentially included in the draw time instead. In practical applications, it might take longer to push data to the GPU. This example contains only one VBO (or Vertex array) with 2 floats per sprite. Practical applications would have more data (such as size and texture information).
The Calc information is about the time it takes to calculate a frame's background color and the new position of each sprite. When JIT is enabled, calculation time is comparable between the Java (Canvas) test and the native (Open GL) tests, but with JIT disabled, Java suffers a significant penalty.
Minecraft Bee Map Pack is a fun-filled map, and is telling people everywhere that bees have come to "Minecraft"? Can't wait to start growing flowers and embark on a sweet adventure? Be the best beekeeper while in a friendly role and five
Module introduction Minecraft Clarity material bag is mainly realistic style, with natural and smooth texture connection, very classical and beautiful, with a resolution of 32X. Compared with the original texture, the Clarity material bag can greatly enha
The Lost Temple map contains mysterious and ancient places of civilization that preserved its legacy in the form of structures and treasures. You can't miss this lost temple in the middle of this island. Explore it
Minecraft SEUSPTGI is a very famous light and shadow package, known as the most eye-catching and strongest light and shadow in history. SEUS PTGI, another masterpiece (beta) by the famous SEUS light and shadow author Sonic Ethe
Minecraft Washington DC Map Package takes you through the capital of the United States! Visit the Lincoln Memorial, the White House, the Washington Monument, the Pentagon and many more landmarks. Find your path in Survival or Creative mode, or complete ta
Minecraft Light Trail Light Shadow kappa-shader is a Minecraft coloring package designed to achieve a true look. Here we provide you with multiple different versions of kappa-shader light and shadow packages since
On our website, you can easily download the latest version of Compare Sprite Draw Method! No registration and SMS required!