Forums » Linux

Not using Hardware Acceleration

Mar 18, 2006 bigun89 link
I have OpenGL working, but for some reason Vendetta isn't using it:

bigun@64lappy ~ $ glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.3
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control
client glx vendor string: NVIDIA Corporation
client glx version string: 1.3
client glx extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_EXT_import_context, GLX_SGI_video_sync,
GLX_NV_swap_group, GLX_NV_video_out, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
GLX_SGI_swap_control, GLX_NV_float_buffer, GLX_ARB_fbconfig_float
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control,
GLX_ARB_get_proc_address
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce4 440 Go 64M/AGP/SSE2
OpenGL version string: 1.5.3 NVIDIA 76.76
OpenGL extensions:
GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_point_parameters,
GL_ARB_point_sprite, GL_ARB_shader_objects, GL_ARB_shading_language_100,
GL_ARB_texture_compression, GL_ARB_texture_cube_map,
GL_ARB_texture_env_add, GL_ARB_texture_env_combine,
GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat,
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_S3_s3tc, GL_EXT_texture_env_add, 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_Cg_shader,
GL_EXT_draw_range_elements, GL_EXT_fog_coord, GL_EXT_multi_draw_arrays,
GL_EXT_packed_pixels, GL_EXT_paletted_texture, GL_EXT_pixel_buffer_object,
GL_EXT_point_parameters, GL_EXT_rescale_normal, GL_EXT_secondary_color,
GL_EXT_separate_specular_color, GL_EXT_shared_texture_palette,
GL_EXT_stencil_wrap, GL_EXT_texture_compression_s3tc,
GL_EXT_texture_cube_map, GL_EXT_texture_edge_clamp,
GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
GL_EXT_texture_filter_anisotropic, GL_EXT_texture_lod,
GL_EXT_texture_lod_bias, GL_EXT_texture_object, GL_EXT_vertex_array,
GL_IBM_rasterpos_clip, GL_IBM_texture_mirrored_repeat,
GL_KTX_buffer_region, GL_NV_blend_square, GL_NV_fence,
GL_NV_fog_distance, GL_NV_light_max_exponent, GL_NV_packed_depth_stencil,
GL_NV_pixel_data_range, GL_NV_point_sprite, GL_NV_register_combiners,
GL_NV_texgen_reflection, GL_NV_texture_env_combine4,
GL_NV_texture_rectangle, GL_NV_vertex_array_range,
GL_NV_vertex_array_range2, GL_NV_vertex_program, GL_NV_vertex_program1_1,
GL_SGIS_generate_mipmap, GL_SGIS_multitexture, GL_SGIS_texture_lod,
GL_SUN_slice_accum
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
----------------------------------------------------------------------
0x21 24 tc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x22 24 dc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x23 24 tc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 0 0 None
0x24 24 tc 0 32 0 r . . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x25 24 tc 0 32 0 r . . 8 8 8 8 4 24 8 16 16 16 16 0 0 None
0x26 24 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x27 24 tc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 0 0 None
0x28 24 tc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x29 24 tc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 0 0 None
0x2a 24 tc 0 32 0 r y . 8 8 8 0 4 16 0 16 16 16 16 0 0 None
0x2b 24 tc 0 32 0 r y . 8 8 8 8 4 16 0 16 16 16 16 0 0 None
0x2c 24 tc 0 32 0 r . . 8 8 8 0 4 16 0 16 16 16 16 0 0 None
0x2d 24 tc 0 32 0 r . . 8 8 8 8 4 16 0 16 16 16 16 0 0 None
0x2e 24 tc 0 32 0 r y . 8 8 8 0 4 0 0 16 16 16 16 0 0 None
0x2f 24 tc 0 32 0 r y . 8 8 8 8 4 0 0 16 16 16 16 0 0 None
0x30 24 tc 0 32 0 r . . 8 8 8 0 4 0 0 16 16 16 16 0 0 None
0x31 24 tc 0 32 0 r . . 8 8 8 8 4 0 0 16 16 16 16 0 0 None
0x32 24 dc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 0 0 None
0x33 24 dc 0 32 0 r . . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x34 24 dc 0 32 0 r . . 8 8 8 8 4 24 8 16 16 16 16 0 0 None
0x35 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x36 24 dc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 0 0 None
0x37 24 dc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x38 24 dc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 0 0 None
0x39 24 dc 0 32 0 r y . 8 8 8 0 4 16 0 16 16 16 16 0 0 None
0x3a 24 dc 0 32 0 r y . 8 8 8 8 4 16 0 16 16 16 16 0 0 None
0x3b 24 dc 0 32 0 r . . 8 8 8 0 4 16 0 16 16 16 16 0 0 None
0x3c 24 dc 0 32 0 r . . 8 8 8 8 4 16 0 16 16 16 16 0 0 None
0x3d 24 dc 0 32 0 r y . 8 8 8 0 4 0 0 16 16 16 16 0 0 None
0x3e 24 dc 0 32 0 r y . 8 8 8 8 4 0 0 16 16 16 16 0 0 None
0x3f 24 dc 0 32 0 r . . 8 8 8 0 4 0 0 16 16 16 16 0 0 None
0x40 24 dc 0 32 0 r . . 8 8 8 8 4 0 0 16 16 16 16 0 0 None

It's a laptop GeForce 3 64 Mb card.
64 bit Athlon 3200+
512 Mb Ram
Mar 18, 2006 bigun89 link
I'm only showing one graphic driver option in Vendetta.. help?
Mar 18, 2006 mr_spuck link
what does openglinfo.log say? it's in the ~/.vendetta directory
Mar 19, 2006 bigun89 link
[Sat Mar 18 06:11:21 2006]
Vendor: NVIDIA Corporation
Renderer: GeForce4 440 Go 64M/AGP/SSE2
Version: 1.5.3 NVIDIA 76.76
Extensions: GL_ARB_imaging GL_ARB_multitexture GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat 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_S3_s3tc GL_EXT_texture_env_add 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_Cg_shader GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_paletted_texture GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shared_texture_palette GL_EXT_stencil_wrap GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_object GL_EXT_vertex_array GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_fence GL_NV_fog_distance GL_NV_light_max_exponent GL_NV_packed_depth_stencil GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_register_combiners GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_NV_texture_rectangle GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_program GL_NV_vertex_program1_1 GL_SGIS_generate_mipmap GL_SGIS_multitexture GL_SGIS_texture_lod GL_SUN_slice_accum
GLU Version: 1.3
GLU Extensions: GLU_EXT_nurbs_tessellator GLU_EXT_object_space_tess
glx Extensions: GLX_EXT_visual_info GLX_EXT_visual_rating GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGI_video_sync GLX_SGI_swap_control GLX_ARB_get_proc_address
glx Version: 1.3
glx server Vendor: NVIDIA Corporation
glx server Version: 1.3
glx server Extensions: GLX_EXT_visual_info GLX_EXT_visual_rating GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGI_video_sync GLX_SGI_swap_control
glx client Vendor: NVIDIA Corporation
glx client Version: 1.3
glx client Extensions: GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_visual_info GLX_EXT_visual_rating GLX_EXT_import_context GLX_SGI_video_sync GLX_NV_swap_group GLX_NV_video_out GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGI_swap_control GLX_NV_float_buffer GLX_ARB_fbconfig_float
GL_MAX_LIGHTS: 8
GL_MAX_CLIP_PLANES: 6
GL_MAX_MODELVIEW_STACK_DEPTH: 32
GL_MAX_PROJECTION_STACK_DEPTH: 4
GL_MAX_TEXTURE_STACK_DEPTH: 10
GL_SUBPIXEL_BITS: 4
GL_MAX_TEXTURE_SIZE: 2048
GL_MAX_PIXEL_MAP_TABLE: 65536
GL_MAX_NAME_STACK_DEPTH: 128
GL_MAX_LIST_NESTING: 64
GL_MAX_EVAL_ORDER: 8
GL_MAX_VIEWPORT_DIMS: 4096
GL_MAX_ATTRIB_STACK_DEPTH: 16
GL_AUX_BUFFERS: 1
GL_RGBA_MODE: 1
GL_INDEX_MODE: 0
GL_DOUBLEBUFFER: 1
GL_STEREO: 0
GL_POINT_SIZE_RANGE: 1.000000 - 63.375000
GL_POINT_SIZE_GRANULARITY: 0.125000
GL_LINE_WIDTH_RANGE: 0.500000 - 10.000000
GL_LINE_WIDTH_GRANULARITY: 0.125000
GL_MAX_TEXTURE_UNITS: 2
GL_MAX_CUBE_MAP_TEXTURE_SIZE: 512
GL_MAX_ELEMENTS_VERTICES: 4096
GL_MAX_ELEMENTS_INDICES: 4096
GL_POINT_SIZE_MIN: 0.000000
GL_POINT_SIZE_MAX: 63.375000
GL_POINT_FADE_THRESHOLD_SIZE: 1.000000
GL_MAX_TEXTURE_MAX_ANISOTROPY: 2.000000
Mar 19, 2006 mr_spuck link
hmm it's using the driver though. Maybe you have shaders enabled. Those are likely too much for your chip.
Mar 19, 2006 Moofed link
Shaders won't work at all on a GeForce4.

bigun, what indication do you have that Vendetta is not using OpenGL, low framerate? There is only one graphic driver for Vendetta in Linux (and Mac) and that is OpenGL. No DirectX or software rendering.
Mar 19, 2006 bigun89 link
The animation "skips" and is jumpy. I tried turning everything as low as possible and as high as possible. It seems it still jumps and skips just as bad either way.
Mar 20, 2006 roguelazer link
Look, you're definitely under the accelerated openGL drivers. If you weren't, the Renderer: line would say MESA (software OpenGL). Do you have Antialiasing turned on from the nvidia control software/commandline? Do you have other processes running (VO gets jumpy if something else grabs CPU)? Is there more than 1 X server running (nvidia gl drivers get jumpy if there is)?
Mar 20, 2006 bigun89 link
Antialiasing.... I have no idea.

And there are no multiple copies of X running, also, the only software running is the standard, X, e16, gkrellm2, sshd, blah, blah, blah.

It's not like I'm encoding video when I play.
Mar 20, 2006 stranger link
Sounds like a problem that I've had. Don't ask me how this works but for some reason when I try using the ALSA sound drivers I get really slow FPS. Go into config.ini and change the sound driver to Open Sound System driver. You can't change it from within VO. If this works please post a reply as you would be the only other person that this works for.

Stranger

Edit: Also you might want to try using a window manager other then E. It's a massive memory hog.
Mar 21, 2006 roguelazer link
If that's happening, it could be bad ALSA drivers for your soundcard (ie: not doing the sound processing on-card, but using some sort of software fallback instead. MESA for sound. :P ) If it does work, please post your kernel version, any patch level, your soundcard, and the version of your userspace ALSA tools.
Mar 22, 2006 raybondo link
Either bad ALSA drivers or misconfigured ALSA drivers. Maybe the sampling rate is not set to 44100 16bit stereo or something and the driver needs to resample it.
Mar 22, 2006 bigun89 link
Changing to OSS simply drops vendetta with no error code.

I attempted something to check if it was alsa... I simply turned off ALSA and started the game. Works beautifully!

So it is ALSA.... so... now what?

*EDIT*

Looking over my ALSA, I am using the ALSA package, not the one built into the kernel. I'm using ALSA version 1.0.10-r2.
Mar 22, 2006 bigun89 link
Ok weird....

I restarted ALSA, and Vendetta works fine.... I'll keep you guys posted. If anyone has any ideas, lemme know.
Mar 22, 2006 mr_spuck link
The ingame audio driver selector doesn'T work. :P

you have to change the AudioDriver line in the config.ini to "Open Sound System driver"

EDIT: oups shouldn't leavetabs open for half an hour
Mar 22, 2006 roguelazer link
You restarted ALSA? Erm, are you sure you aren't think of ARTs?
Mar 24, 2006 bigun89 link
Yes... restarted ALSA

/etc/init.d/alsasound restart

But for some reason, it's working fine now.