Sprite Testing for Rich Internet Applications
The follow page contains public source code and demos for the paper “Graphics Performance in Rich Internet Applications”, published in IEEE Computer Graphics & Applications (CG&A), September 2012.
The test consists of N transparent 2D sprites of 32×32 pixels each, rendered and initially placed at random locations on a 1280 x 900 pixel canvas. The sprites are animated according to a simple physics system with a point gravity at the center of the canvas. The test suite displays frame times in milliseconds, and allows for measurement of simulation and rendering separately. User input permits scaling the number of sprites (N) up to one million.
Raw Data can be downloaded here:
All tests were conducted on a Sager NP8690 Core i7 640M laptop, with 4 GB ram, and a GeForce GTX 460M graphics card.
Original source code and demos are provided here for reference and validation.
To run these tests in different browsers, simply click on the links below in your browser of choice.
A future goal of this work, which readers are invited to participate in, is to perform these tests in other operating systems and on mobile devices.
Comments welcome below. NOTE: I recently fixed the comment entry below. If you have any problems posting comments, please email me at email@example.com and let me know.
Keyboard control is identical for all demos below:
Z, X – Decrease/increase number of sprites by 100
Q,W – Decrease/increase number of sprites by 10,000
P – Pause simulation. Continue rendering. (Measures rendering only)
D – Pause rendering. Continue simulation. (Measures simulation only)
S – Switch to BitmapData sprites (Flex/Flash version only)
Click for online demo. http://rchoetzlein.com/sprite_tests/flex/
Download source here: sprites_flex.zip
Use the ‘S’ key to switch between Sprite and BitmapData rendering.
Click for online demo. http://rchoetzlein.com/sprite_tests/jscript/
Download source here: sprites_jscript.zip
Click for online demo. http://rchoetzlein.com/sprite_tests/webgl
Download source here: sprites_webgl.zip
Download source here (Windows): sprites_opengl.zip