• Home
  • Games
    Action Adventure Simulated Business Role Playing Sports Competition Casual Puzzle Card Strategy Music Rhythm Word Puzzle Flight Shooting Love Development
  • Apps
    Business Office Communication and Social Lifestyle and Entertainment Online Shopping Utility Tools Travel Travel Finance Education Learning Information Reading Sports and Health
  • Articles

English 中文(简体) 中文(繁体) 한국어 日本語 Português Español Русский العربية Indonesia Deutsch Français ภาษาไทย
Home Apps Business Office Compare Sprite Draw Method
Compare Sprite Draw Method
Compare Sprite Draw MethodDownload
1
2
3
4
5
7.5

Zombie Gunship Survival

  • Version 1.0.0
  • Category Business Office
  • Package Name com.terriblysimple.android.spritetest
  • Update Time July 15, 2025
  • Size 60.16KB
About this app

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.

What's New in the Latest Version 1.0.0

Last updated on Oct 4, 2015 Version 1.0.0
Uploaded to Google Play
Screenshots
Compare Sprite Draw Method
Compare Sprite Draw Method
Compare Sprite Draw Method
Users also viewed
  • Shopping Pay&Go

    Shopping Pay&Gor

    1.0.1 January 14, 2026
    7.1
    1
    2
    3
    4
    5
  • ZEP2 - Zeiterfassung

    ZEP2 - Zeiterfassungr

    3.8.1 January 11, 2026
    9.5
    1
    2
    3
    4
    5
  • Ringtone Master

    Ringtone Masterr

    1.1.6.201504023 January 10, 2026
    9
    1
    2
    3
    4
    5
  • Health Journal

    Health Journalr

    3.0.0 January 10, 2026
    8.6
    1
    2
    3
    4
    5
  • Zzzzzz

    Zzzzzzr

    7.0 January 10, 2026
    7.3
    1
    2
    3
    4
    5
  • Agile Poker

    Agile Pokerr

    1.0 January 9, 2026
    8.1
    1
    2
    3
    4
    5
  • RTKGPS+

    RTKGPS+r

    1.0 Alpha 26 January 8, 2026
    8.7
    1
    2
    3
    4
    5
  • Clavier Wolof

    Clavier Wolofr

    1.0 January 8, 2026
    8.9
    1
    2
    3
    4
    5
  • IoT Arduino Control Devices

    IoT Arduino Control Devicesr

    0.2 January 6, 2026
    8.9
    1
    2
    3
    4
    5
  • McAfee Safe Wi-Fi

    McAfee Safe Wi-Fir

    1.1.2.276 January 5, 2026
    7.1
    1
    2
    3
    4
    5
You may also be interested
  • Color Brick

    Color Brickr

    1.2.1 January 15, 2026
    7.8
    1
    2
    3
    4
    5
  • Genius Quiz Reverse

    Genius Quiz Reverser

    1.0.1 January 15, 2026
    9.5
    1
    2
    3
    4
    5
  • Traffic Desert Racing

    Traffic Desert Racingr

    1.3 January 15, 2026
    7.9
    1
    2
    3
    4
    5
  • Puzzle to the Center of Earth

    Puzzle to the Center of Earthr

    1.00.07.4 January 15, 2026
    9.5
    1
    2
    3
    4
    5
  • Games WWE 2K17 Smackdown Cheat

    Games WWE 2K17 Smackdown Cheatr

    1.0 January 15, 2026
    8.7
    1
    2
    3
    4
    5
  • Unicorn Dash Attack

    Unicorn Dash Attackr

    unicorn games v3.10.199 January 15, 2026
    8.4
    1
    2
    3
    4
    5
  • World War 2 Gun Shooting Games

    World War 2 Gun Shooting Gamesr

    8.0 January 15, 2026
    9.3
    1
    2
    3
    4
    5
  • Mahabharata Quiz

    Mahabharata Quizr

    1.0 January 15, 2026
    8.2
    1
    2
    3
    4
    5
  • Roda Ceria: Inspirasi Negara

    Roda Ceria: Inspirasi Negarar

    3 January 15, 2026
    7.1
    1
    2
    3
    4
    5
  • Dolphin Jump

    Dolphin Jumpr

    1.9 January 15, 2026
    9.3
    1
    2
    3
    4
    5
Categories Games
  • Action AdventureAction Adventure
  • Simulated BusinessSimulated Business
  • Role PlayingRole Playing
  • Sports CompetitionSports Competition
  • Casual PuzzleCasual Puzzle
  • Card StrategyCard Strategy
  • Music RhythmMusic Rhythm
  • Word PuzzleWord Puzzle
  • Flight ShootingFlight Shooting
  • Love DevelopmentLove Development
Categories Apps
  • Business OfficeBusiness Office
  • Communication and SocialCommunication and Social
  • Lifestyle and EntertainmentLifestyle and Entertainment
  • Online ShoppingOnline Shopping
  • Utility ToolsUtility Tools
  • Travel TravelTravel Travel
  • FinanceFinance
  • Education LearningEducation Learning
  • Information ReadingInformation Reading
  • Sports and HealthSports and Health
About Privacy Policy Terms of Service Cooking Policy

© Copyright 2017-2026 downtj.com