sdl testgl.c framerate on freerunner?

eric at ericanddebbie.com eric at ericanddebbie.com
Mon Nov 17 19:08:53 CET 2008


Thanks Aapo and Marco,

Yes, it looks a little slow for 480x640.  I'll have to do something that
takes less cpu.

Thanks again,
Eric

Marco Trevisan (Treviño) wrote:
> eric at ericanddebbie.com ha scritto:
>> Hi,
>>
>> I have a neo1973, and I was wondering how different the gl capabilities
>> are from the freerunner when doing fullscreen swaps with opengl.
>>
>> For a comparison, could someone with a freerunner try running the sdl
>> example program testgl.c (it comes with sdl) and report the framerate?
>>  I've attached a binary that I compiled and ran on my neo and the source
>> in case you'd rather compile it.
>>
>> On my neo, testgl gets about 19 FPS without having much else running
>> (I'm running FSO 4.  I also did "/etc/init.d/frameworkd stop" to reduce
>> cpu usage)
>>
>> How:
>> - You probably need libgl1 and libsdl-1.2-0 opks installed.
>> ( opkg install libgl1 )
>
> It needs also libglu1...
>
>> - You probably want to stop frameworkd to make the comparison fair:
>>   /etc/init.d/frameworkd stop
>>
>> - Then run the binary:
>>   gltest.out
>>  and wait a few seconds before hitting ctrl-c.  The FPS number should
>> print out -- that's the number I'm looking for.
>>
>> I'm thinking of writing a (really) simple game.  If the FPS on the
>> freerunner is much slower (and I expect it to be slower for now), I'll
>> avoid doing fullscreen swaps unless/until there's an accelerated glamo
>> driver.
>
> Using Om2008 with Illume ON (and qpe down) running in Xglamo I got:
>
> root at om-gta02:~# DISPLAY=:0 /tmp/testgl.arm.out & sleep 15 && killall
> testgl.arm.out
> Screen BPP: 16
>
> Vendor     : Brian Paul
> Renderer   : Mesa X11
> Version    : 1.5 Mesa 6.5.2
> Extensions : GL_ARB_depth_texture GL_ARB_draw_buffers
> GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_half_float_pixel
> GL_ARB_imaging GL_ARB_multisample GL_ARB_multitexture
> GL_ARB_occlusion_query GL_ARB_pixel_buffer_object
> GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shader_objects
> GL_ARB_shading_language_100 GL_ARB_shadow GL_ARB_shadow_ambient
> GL_ARB_texture_border_clamp GL_ARB_texture_compression
> GL_ARB_texture_cube_map GL_ARB_texture_env_add
> GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar
> GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat
> GL_ARB_texture_non_power_of_two GL_ARB_texture_rectangle
> GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object
> GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_EXT_abgr
> GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate
> GL_EXT_blend_func_separate GL_EXT_blend_logic_op GL_EXT_blend_minmax
> GL_EXT_blend_subtract GL_EXT_clip_volume_hint
> GL_EXT_compiled_vertex_array GL_EXT_convolution GL_EXT_copy_texture
> GL_EXT_depth_bounds_test GL_EXT_draw_range_elements
> GL_EXT_framebuffer_object GL_EXT_framebuffer_blit GL_EXT_fog_coord
> GL_EXT_gpu_program_parameters GL_EXT_histogram GL_EXT_multi_draw_arrays
> GL_EXT_packed_depth_stencil GL_EXT_packed_pixels GL_EXT_paletted_texture
> GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_polygon_offset
> GL_EXT_rescale_normal GL_EXT_secondary_color
> GL_EXT_separate_specular_color GL_EXT_shadow_funcs
> GL_EXT_shared_texture_palette GL_EXT_stencil_wrap GL_EXT_subtexture
> GL_EXT_texture GL_EXT_texture3D GL_EXT_texture_edge_clamp
> GL_EXT_texture_env_add GL_EXT_texture_env_combine
> GL_EXT_texture_env_dot3 GL_EXT_texture_lod_bias
> GL_EXT_texture_mirror_clamp GL_EXT_texture_object
> GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_timer_query
> GL_EXT_vertex_array GL_APPLE_packed_pixels GL_APPLE_vertex_array_object
> GL_ATI_blend_equation_separate GL_ATI_texture_env_combine3
> GL_ATI_texture_mirror_once GL_ATI_fragment_shader
> GL_IBM_multimode_draw_arrays GL_IBM_rasterpos_clip
> GL_IBM_texture_mirrored_repeat GL_INGR_blend_func_separate
> GL_MESA_pack_invert GL_MESA_program_debug GL_MESA_resize_buffers
> GL_MESA_ycbcr_texture GL_MESA_window_pos GL_NV_blend_square
> GL_NV_fragment_program GL_NV_light_max_exponent GL_NV_point_sprite
> GL_NV_texture_rectangle GL_NV_texgen_reflection GL_NV_vertex_program
> GL_NV_vertex_program1_1 GL_OES_read_format GL_SGI_color_matrix
> GL_SGI_color_table GL_SGI_texture_color_table GL_SGIS_generate_mipmap
> GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp
> GL_SGIS_texture_lod GL_SGIX_depth_texture GL_SGIX_shadow
> GL_SGIX_shadow_ambient GL_SUN_multi_draw_arrays
>
> SDL_GL_RED_SIZE: requested 5, got 8
> SDL_GL_GREEN_SIZE: requested 5, got 8
> SDL_GL_BLUE_SIZE: requested 5, got 8
> SDL_GL_DEPTH_SIZE: requested 16, got 16
> SDL_GL_DOUBLEBUFFER: requested 1, got 1
> testgl: SDL error 'Unknown OpenGL attribute'
> root at om-gta02:~# 10.16 FPS
>
> So quite slower...
>






More information about the devel mailing list