[App + Src + Game] Test OpenGL and OpenVG performance; Game using OpenGL

Search This thread

heliosdev

Senior Member
Aug 19, 2007
266
1
Test OpenGL performs different tests to show the 3d rendering performance on PPCs. It cycles through all tests by rendering 500 frames.

The tests are:
1 alpha texture: eight textured (128x256 RGBA) rotating rectangles with alpha testing
2 torus light: torus with 3k triangles and one lightsource (visual glitches)
3 color blending: blending of four rectangles and a 256x256 texture
4 sub texture: copy a 15x15 rgba texture into a 128x128 rgba texture

Currently, there are discussions on different drivers.

The images show the four test results on a HTC Touch HD (Blackstone) running the latest official HTC ROM.
Please post your frame rates and the model/ROM running this test.
More tests to come.

----------------Updates-----------------
18 January 2010
print information about available hardware acceleration in OpenVG post #47

17 January 2010
added TestOpenGLVGResolutionHD2.cab to test OpenVG on new devices like HD2 post #47

5 November 2009
Watch the test running on a HTC HD and a HTC HD2! video

10 August 2009
different resolutions test added post #47

24 June 2009
OpenVG test added post #33

17 May 2009
OpenGL game 'Lights On' added
Turn all tiles from black to yellow. Clicking on a tile turns it and all its adjacent neighbours (up/down/left/right)
It starts with a 2x2 grid and automatically grows after completion.
Anybody solved the 6x6 grid? :confused:

09 May 2009
source code released (C# .net cf 2.0)
to add a new test add a new class (in namespace OpenGLTest), implement IOpenGLTest and add a new instance to the list _openglTests in MainForm.InitGL().
To run the app in the emulator copy the file libGLES_CM.dll (software implementation) to /windows or the deployment directory of the emulator (not on the device!).
The managed OpenGL ES wrapper, Font and Texture classes are from here.
The Blackstone texture is a print screen of the xda main page (with additional alpha layer):D
The text texture is out of one of the OpenGL ES specs

08 May 2009
more accurate performance measurement (taking screen size into account)
show report when closing the test (performance and OpengGL ES information)

02 May 2009
initial version
 

Attachments

  • TestOpenGL.CAB
    97.6 KB · Views: 6,120
  • TestOpenGL_src.zip
    162.9 KB · Views: 2,317
  • LightsOn.CAB
    60.8 KB · Views: 2,131
  • LightsOn.jpg
    LightsOn.jpg
    21.4 KB · Views: 1,302
Last edited:

uniqueboy

Senior Member
Apr 11, 2006
1,421
5
Hi there, I am using a Diamond with my favourite rom Vic 3.4, 3.7 is old but for me this was best, I have pissed about a bit with some of the the ati drivers found in the thread linked above and these are my scores coresponding to your screenies.:)
1:68
2:21
3:78
4:49
 
Last edited:

heliosdev

Senior Member
Aug 19, 2007
266
1
incubus26jc, you'll need libgles_cm.dll in the /windows directory. Try to find the one for your device.
uniqueboy, not bad ;)
 

heliosdev

Senior Member
Aug 19, 2007
266
1
current results on Blackstone (stock rom)
Code:
Results
--------------------------------
alpha texture (128x256 rgba)
30340 kPixels/s

torus (3k triangles) one light
6272 kPixels/s

color blending
31498 kPixels/s

sub texture (128x128 15x15)
10762 kPixels/s

OpengGL ES info
--------------------------------
Vendor
QUALCOMM, Inc.

Version
OpenGL ES-CM 1.0

Renderer
Q3Dimension MSM7500W 01.02.03 0 5.1.2

Extensions
GL_OES_byte_coordinates
GL_OES_read_format
GL_OES_fixed_point
GL_OES_single_precision_commands
GL_OES_compressed_paletted_texture
GL_OES_matrix_palette
GL_OES_point_sprite
GL_OES_point_size_array
GL_ARB_vertex_buffer_object
GL_ARB_texture_env_combine
GL_ARB_texture_env_dot3
GL_ARB_texture_env_crossbar
GL_ARB_texture_mirrored_repeat
GL_EXT_stencil_wrap
GL_EXT_blend_minmax
GL_EXT_blend_subtract
GL_EXT_blend_func_separate
GL_EXT_blend_equation_separate
GL_ATI_texture_compression_atitc
GL_ATI_extended_texture_coordinate_data_formats
GL_OES_draw_texture
 

adrianmak

Senior Member
May 3, 2009
888
31
mine result without any graphic performance dll added.
HD English stock rom
Code:
Results
--------------------------------
alpha texture (128x256 rgba)
20260 kPixels/s

torus (3k triangles) one light
5683 kPixels/s

color blending
24444 kPixels/s

sub texture (128x128 15x15)
10449 kPixels/s

OpengGL ES info
--------------------------------
Vendor
QUALCOMM, Inc.

Version
OpenGL ES-CM 1.0

Renderer
Q3Dimension MSM7500W 01.02.03 0 5.1.2

Extensions
GL_OES_byte_coordinates
GL_OES_read_format
GL_OES_fixed_point
GL_OES_single_precision_commands
GL_OES_compressed_paletted_texture
GL_OES_matrix_palette
GL_OES_point_sprite
GL_OES_point_size_array
GL_ARB_vertex_buffer_object
GL_ARB_texture_env_combine
GL_ARB_texture_env_dot3
GL_ARB_texture_env_crossbar
GL_ARB_texture_mirrored_repeat
GL_EXT_stencil_wrap
GL_EXT_blend_minmax
GL_EXT_blend_subtract
GL_EXT_blend_func_separate
GL_EXT_blend_equation_separate
GL_ATI_texture_compression_atitc
GL_ATI_extended_texture_coordinate_data_formats
GL_OES_draw_texture
 

shadowmike

Senior Member
Feb 6, 2008
1,591
191
37
Cleveland
facebook.com
When you say "more accurate performance measurement (taking screen size into account)" Does this auto detect screensize for phones like the x1 that has a thinner screen then the HD or is it set to the HD screen size to measure performance.
 

chalid

Senior Member
Jan 18, 2008
1,043
175
SE X1

Code:
Results
--------------------------------
alpha texture (128x256 rgba)
24313 kPixels/s

torus (3k triangles) one light
7374 kPixels/s

color blending
24279 kPixels/s

sub texture (128x128 15x15)
11585 kPixels/s
 

heliosdev

Senior Member
Aug 19, 2007
266
1
When you say "more accurate performance measurement (taking screen size into account)" Does this auto detect screensize for phones like the x1 that has a thinner screen then the HD or is it set to the HD screen size to measure performance.

Yes, it uses the current screen size. It takes the average fps after rendering 50 frames and multiplies it by the number of pixels (screen size width x height).
 

malloth

Senior Member
Oct 10, 2006
117
0
heliosdev, do You use diffrent thread for pixels/s counter?
I have made this test and each time the result label changed I got a little slowdown.

I tried it on XDA Atom Life with software rendering (it works on devices without gfx accelerator :D) and got those results:

Code:
Results
--------------------------------
alpha texture (128x256 rgba)
1128 kPixels/s

torus (3k triangles) one light
666 kPixels/s

color blending
1039 kPixels/s

sub texture (128x128 15x15)
954 kPixels/s

OpengGL ES info
--------------------------------
Vendor
Hans-Martin Will

Version
OpenGL ES-CL 1.1

Renderer
Software

Extensions
GL_OES_fixed_point
GL_OES_single_precision
GL_OES_read_format
GL_OES_query_matrix
GL_OES_point_size_array
GL_OES_point_sprite
GL_OES_compressed_paletted_texture
 

heliosdev

Senior Member
Aug 19, 2007
266
1
No threading. It's because of (slow) software rendering. As I'm updating the performance number every 50 frames you don't see the 'slowdown' during these 50 frames because the number doesn't change!;)
Btw, looking at your results, also in software rendering the torus test is the evil one!:D
 

malloth

Senior Member
Oct 10, 2006
117
0
Yeah, torus test is a masacre for my 640MHz XScale CPU alone :).
I'm waiting for GSmart S1204. When it will appear my benchmark will be simillar to that of Diamond (I hope).
 

NeoS

Inactive Recognized Developer / Retired Senior Mod
Jan 27, 2008
3,417
950
Somewhere in NL
Code:
Results
--------------------------------
alpha texture (128x256 rgba)
25128 kPixels/s

torus (3k triangles) one light
4701 kPixels/s

color blending
27114 kPixels/s

sub texture (128x128 15x15)
9299 kPixels/s

OpengGL ES info
--------------------------------
Running on my HD with OpenVG driver, without ATI driver.

Code:
Results
--------------------------------
alpha texture (128x256 rgba)
25630 kPixels/s

torus (3k triangles) one light
4793 kPixels/s

color blending
27267 kPixels/s

sub texture (128x128 15x15)
9300 kPixels/s

OpengGL ES info
--------------------------------
Running on my HD with OpenVG and ATI driver.
 

sc00basteve

Senior Member
May 2, 2008
228
15
Running Juicy7 090512 (WM6.5 build21222)

Results
--------------------------------
alpha texture (128x256 rgba)
24159 kPixels/s

torus (3k triangles) one light
6188 kPixels/s

color blending
22541 kPixels/s

sub texture (128x128 15x15)
12201 kPixels/s

OpengGL ES info
--------------------------------
Vendor
QUALCOMM, Inc.

Version
OpenGL ES-CM 1.0

Renderer
Q3Dimension MSM7500W 01.02.03 0 5.1.2

Extensions
GL_OES_byte_coordinates
GL_OES_read_format
GL_OES_fixed_point
GL_OES_single_precision_commands
GL_OES_compressed_paletted_texture
GL_OES_matrix_palette
GL_OES_point_sprite
GL_OES_point_size_array
GL_ARB_vertex_buffer_object
GL_ARB_texture_env_combine
GL_ARB_texture_env_dot3
GL_ARB_texture_env_crossbar
GL_ARB_texture_mirrored_repeat
GL_EXT_stencil_wrap
GL_EXT_blend_minmax
GL_EXT_blend_subtract
GL_EXT_blend_func_separate
GL_EXT_blend_equation_separate
GL_ATI_texture_compression_atitc
GL_ATI_extended_texture_coordinate_data_formats
GL_OES_draw_texture
 

uniqueboy

Senior Member
Apr 11, 2006
1,421
5
Thanks for the game I will be playing it shortly, 6x6, bah I hope to do better than that!:)
 
HTC Touch Diamond2 (Default ROM, German)

Code:
Results
--------------------------------
alpha texture (128x256 rgba)
20323 kPixels/s

torus (3k triangles) one light
8422 kPixels/s

color blending
19615 kPixels/s

sub texture (128x128 15x15)
12010 kPixels/s

OpengGL ES info
--------------------------------
Vendor
QUALCOMM, Inc.

Version
OpenGL ES-CM 1.0

Renderer
Q3Dimension MSM7500W 01.02.03 0 5.1.2

Extensions
GL_OES_byte_coordinates
GL_OES_read_format
GL_OES_fixed_point
GL_OES_single_precision_commands
GL_OES_compressed_paletted_texture
GL_OES_matrix_palette
GL_OES_point_sprite
GL_OES_point_size_array
GL_ARB_vertex_buffer_object
GL_ARB_texture_env_combine
GL_ARB_texture_env_dot3
GL_ARB_texture_env_crossbar
GL_ARB_texture_mirrored_repeat
GL_EXT_stencil_wrap
GL_EXT_blend_minmax
GL_EXT_blend_subtract
GL_EXT_blend_func_separate
GL_EXT_blend_equation_separate
GL_ATI_texture_compression_atitc
GL_ATI_extended_texture_coordinate_data_formats
GL_OES_draw_texture