Autor Tópico: como aparecer o FPS no glxgears??  (Lida 4411 vezes)

Offline uplink

  • Usuário Ubuntu
  • *
  • Mensagens: 184
    • Ver perfil
como aparecer o FPS no glxgears??
« Online: 01 de Setembro de 2006, 01:02 »
pessoal.. a um tempo atraz vi um comando que mostrava a quantidade de fps que rodava o glxegars.
pois aqui aparece as engrenagens mas nada mais

e eu to a uns dias direto no google e não acho esse bendito comando (eu tava usando o ubuntu dapper 64bits,mas aquele não tinha o driver para minha placa,intão instalei o ubuntu i386)

ao executar o glxgear da nisso:
Código: [Selecionar]
$ glxgears
__driCreateNewScreen_20050727 - succeeded
$

aparece as engrenagens mas não da em nada,somente aquele codigos ali

dai fui ao glxinfo:
Código: [Selecionar]
$ glxinfo
name of display: :0.0
__driCreateNewScreen_20050727 - succeeded
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
    GLX_EXT_import_context, GLX_OML_swap_method, GLX_SGI_make_current_read,
    GLX_SGIS_multisample, GLX_SGIX_hyperpipe, GLX_SGIX_swap_barrier,
    GLX_SGIX_fbconfig
client glx vendor string: SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
    GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, GLX_OML_swap_method,
    GLX_OML_sync_control, GLX_SGI_make_current_read, GLX_SGI_swap_control,
    GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
    GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group,
    GLX_EXT_texture_from_pixmap
GLX version: 1.2
GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_swap_control,
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_SGI_video_sync,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig
OpenGL vendor string: VIA Technology
OpenGL renderer string: Mesa DRI UniChrome (K8M800) 20050526
OpenGL version string: 1.2 Mesa 6.4.1
OpenGL extensions:
    GL_ARB_imaging, GL_ARB_multisample, GL_ARB_multitexture,
    GL_ARB_point_parameters, GL_ARB_texture_env_add,
    GL_ARB_texture_env_combine, GL_ARB_texture_mirrored_repeat,
    GL_ARB_transpose_matrix, GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra,
    GL_EXT_blend_color, 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_draw_range_elements, GL_EXT_fog_coord,
    GL_EXT_histogram, GL_EXT_packed_pixels, GL_EXT_point_parameters,
    GL_EXT_polygon_offset, GL_EXT_rescale_normal, GL_EXT_secondary_color,
    GL_EXT_separate_specular_color, 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_lod_bias, GL_EXT_texture_object, GL_EXT_vertex_array,
    GL_APPLE_packed_pixels, GL_IBM_rasterpos_clip,
    GL_IBM_texture_mirrored_repeat, GL_MESA_window_pos, GL_NV_blend_square,
    GL_NV_light_max_exponent, GL_NV_texgen_reflection, GL_OES_read_format,
    GL_SGI_color_matrix, GL_SGI_color_table, GL_SGIS_texture_edge_clamp,
    GL_SGIS_texture_lod
glu version: 1.3
glu extensions:
    GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x22 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x23 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x24 24 tc  0 32  0 r  y  .  8  8  8  8  0 16  0  0  0  0  0  0 0 None
0x25 24 tc  0 32  0 r  .  .  8  8  8  8  0 16  0  0  0  0  0  0 0 None
0x26 24 tc  0 32  0 r  y  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0x27 24 tc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0x28 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x29 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x2a 24 tc  0 32  0 r  y  .  8  8  8  8  0 16  0 16 16 16 16  0 0 Slow
0x2b 24 tc  0 32  0 r  .  .  8  8  8  8  0 16  0 16 16 16 16  0 0 Slow
0x2c 24 tc  0 32  0 r  y  .  8  8  8  8  0  0  0 16 16 16 16  0 0 Slow
0x2d 24 tc  0 32  0 r  .  .  8  8  8  8  0  0  0 16 16 16 16  0 0 Slow
$

glxgears -info
Código: [Selecionar]
$glxgears -info
__driCreateNewScreen_20050727 - succeeded
GL_RENDERER   = Mesa DRI UniChrome (K8M800) 20050526
GL_VERSION    = 1.2 Mesa 6.4.1
GL_VENDOR     = VIA Technology
GL_EXTENSIONS = GL_ARB_imaging GL_ARB_multisample GL_ARB_multitexture GL_ARB_point_parameters GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_mirrored_repeat GL_ARB_transpose_matrix GL_ARB_window_pos GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color 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_draw_range_elements GL_EXT_fog_coord GL_EXT_histogram GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_polygon_offset GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color 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_lod_bias GL_EXT_texture_object GL_EXT_vertex_array GL_APPLE_packed_pixels GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_MESA_window_pos GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_OES_read_format GL_SGI_color_matrix GL_SGI_color_table GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod
$

não to conseguindo saber a quantos FPS eu estou executando o glxgears,alguem tem alguma ideia de como posso ver?

grato
« Última modificação: 01 de Setembro de 2006, 01:36 por uplink »
Cai fora do Forum...

Entenda o Porque !

Offline naldin

  • Usuário Ubuntu
  • *
  • Mensagens: 143
    • Ver perfil
Re: como aparecer o FPS no glxgears??
« Resposta #1 Online: 01 de Setembro de 2006, 02:06 »
Comigo tá do mesmo jeito. Ja procurei e tentei de tudo e nada. To achando que é essa versão para ubuntu especifica.
-Notebook Dell Vostro 1400 | Video Intel GM965
-HD250Gb | 4Gb DDR600 | HD500Gb de bolso
+ LCD 19" Samsung

Offline Lamego

  • Usuário Ubuntu
  • *
  • Mensagens: 1.943
    • Ver perfil
Re: como aparecer o FPS no glxgears??
« Resposta #2 Online: 01 de Setembro de 2006, 12:46 »
Se não estou em erro a opção é:
Código: [Selecionar]
glxgears --printfps
João Luís Marques Pinto
Mais programs e jogos para o Ubuntu

Offline naldin

  • Usuário Ubuntu
  • *
  • Mensagens: 143
    • Ver perfil
Re: como aparecer o FPS no glxgears??
« Resposta #3 Online: 01 de Setembro de 2006, 16:51 »
Se não estou em erro a opção é:
Código: [Selecionar]
glxgears --printfps
Testei aqui e não deu, aparece: Warrning: unknown parameter: --printfps
-Notebook Dell Vostro 1400 | Video Intel GM965
-HD250Gb | 4Gb DDR600 | HD500Gb de bolso
+ LCD 19" Samsung

Offline Kursk

  • Usuário Ubuntu
  • *
  • Mensagens: 13
    • Ver perfil
Re: como aparecer o FPS no glxgears??
« Resposta #4 Online: 01 de Setembro de 2006, 17:34 »
 Programadores são, antes de tudo, uns gozadores. Aparentemente esta ferramenta estava sendo usada como benchmark, assim, na versão que está no Ubuntu (e também no KUbuntu) ela foi modificada. Agora, para ver os fps é necessário usar uma de duas opções:

[wilson : ~]=> glxgears -iacknowledgethatthistoolisnotabenchmark
3721 frames in 5.0 seconds = 744.020 FPS
3938 frames in 5.0 seconds = 787.470 FPS

[wilson : ~]=> glxgears -printfps
3800 frames in 5.0 seconds = 759.876 FPS
4039 frames in 5.0 seconds = 807.585 FPS

Obviamente a segunda opção é bem mais fácil de ser lembrada, mas que a primeira é bem mais divertida, pela ótica de programador, lá isso é ....

Obs: O colega aí em cima passou bem perto; era só usar somente um "-" e não dois "-" antes da opção...

------------------
Kursk

Offline naldin

  • Usuário Ubuntu
  • *
  • Mensagens: 143
    • Ver perfil
Re: como aparecer o FPS no glxgears??
« Resposta #5 Online: 01 de Setembro de 2006, 17:43 »
Hehehe... agora sim. Mas -iacknowledgethatthistoolisnotabenchmark so matando o cara. ;D
-Notebook Dell Vostro 1400 | Video Intel GM965
-HD250Gb | 4Gb DDR600 | HD500Gb de bolso
+ LCD 19" Samsung

Offline uplink

  • Usuário Ubuntu
  • *
  • Mensagens: 184
    • Ver perfil
Re: como aparecer o FPS no glxgears??
« Resposta #6 Online: 02 de Setembro de 2006, 02:56 »
ola pessoal, funcionou 100%.
$ glxgears -iacknowledgethatthistoolisnotabenchmark
__driCreateNewScreen_20050727 - succeeded
1997 frames in 5.0 seconds = 398.993 FPS
1965 frames in 5.0 seconds = 392.935 FPS
1984 frames in 5.0 seconds = 396.632 FPS
1970 frames in 5.0 seconds = 393.971 FPS
1983 frames in 5.0 seconds = 396.597 FPS
1982 frames in 5.0 seconds = 396.378 FPS
1984 frames in 5.0 seconds = 396.615 FPS
1979 frames in 5.0 seconds = 395.306 FPS
1974 frames in 5.0 seconds = 394.371 FPS
$

alem de ter video onboard tem que usar um driver não desenvolvido pelo produtor do hardware é um saco. alem de perder desempenho trava na maioria dos aplicativos 3D,ehehe

mas pessoal como vocês acharam esses 2 comandos? eu fiquei pelo google horas e horas e não havia encontrado nada

grato
Cai fora do Forum...

Entenda o Porque !