Author Topic: Freespace too slow on Linux  (Read 3068 times)

0 Members and 1 Guest are viewing this topic.

Offline AGazzaz

  • 23
Freespace too slow on Linux
Hello,
I do not know if it is the right place to post linux questions but,
I downloaded the linux executables from the online installer, and I used this command to run the game and here is what happened (the command is from the freespace wiki)
Code: [Select]
[linux@dhcppc3 Freespace]$ ./fs2_open.bin -spec -glow -mipmap -jpgtga -orbradar -mod Media_VP
open /dev/[sound/]dsp: Device or resource busy
Could not open SDL library: libSDL.so: cannot open shared object file: No such file or directory
Could not open ESoundD library: libesd.so: cannot open shared object file: No such file or directory
Could not open aRts library: libartsc.so: cannot open shared object file: No such file or directory
libGL warning: 3D driver claims to not support visual 0x63
do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly.
Try running with LIBGL_THROTTLE_REFRESH and LIBL_SYNC_REFRESH unset.

I am runing Mandriva 2008 on an Acer Extensa 5220 Laptop
How can I make the game playable?
thanks in advance...

 

Offline Mars

  • I have no originality
  • 211
  • Attempting unreasonable levels of reasonable
Re: Freespace too slow on Linux
Type "glxinfo" and post the output

 

Offline Herra Tohtori

  • The Academic
  • 211
  • Bad command or file name
Re: Freespace too slow on Linux
Do you have software mixing configured for sound? Looks like something is using sound resources and FS2_Open can't use them... Are you getting any sound from the game at all? And out of curiosity - why OSD instead of ALSA? :nervous: And do you have libopenal -package installed...? Dunno if you can even start the game without that one, though, so the question might be redundant...

As far as slowness goes - what kind of graphics card are you using? And if you're running any 3D desktop rendering like Beryl/Compiz, disable it while you're playing the game.

It's also possible that the sound issues are causing slowness (?); to check out this possibility, try runnign the game with -nosound command line option, and check if it's just as slow then.

Couldn't hurt to post actual spects of the PC either... CPU, memory, GPU most importantly.
There are three things that last forever: Abort, Retry, Fail - and the greatest of these is Fail.

 

Offline Mars

  • I have no originality
  • 211
  • Attempting unreasonable levels of reasonable
Re: Freespace too slow on Linux
Oh, and if possible use a low latency or realtime kernel

 

Offline AGazzaz

  • 23
Re: Freespace too slow on Linux
Thank you for your replies.
and here is what I got so far.

1-Specifications:
Processor: 1.8GHz, 1 MB L2 Cache
Ram: 512MB
Graphics:Mobile Intel Graphics Media Accelerator x3100 (128MB)

2-The output of glxinfo:
Code: [Select]
[linux@dhcppc3 ~]$ glxinfo
name of display: :0.0
libGL warning: 3D driver claims to not support visual 0x63
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_import_context, GLX_EXT_texture_from_pixmap,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,
    GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGI_swap_control,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_visual_select_group
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_copy_sub_buffer, 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_copy_sub_buffer,
    GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, GLX_OML_swap_method,
    GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_visual_select_group
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) 965GM 4.1.3002 x86/MMX/SSE2
OpenGL version string: 1.4 Mesa 7.0.1
OpenGL extensions:
    GL_ARB_depth_texture, GL_ARB_fragment_program, GL_ARB_imaging,
    GL_ARB_multisample, GL_ARB_multitexture, GL_ARB_point_parameters,
    GL_ARB_shadow, 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_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_cull_vertex,
    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_multi_draw_arrays, 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_shadow_funcs, 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_filter_anisotropic, GL_EXT_texture_lod_bias,
    GL_EXT_texture_object, GL_EXT_texture_rectangle, GL_EXT_vertex_array,
    GL_3DFX_texture_compression_FXT1, GL_APPLE_client_storage,
    GL_APPLE_packed_pixels, GL_ATI_blend_equation_separate,
    GL_IBM_rasterpos_clip, GL_IBM_texture_mirrored_repeat,
    GL_INGR_blend_func_separate, GL_MESA_pack_invert, GL_MESA_ycbcr_texture,
    GL_MESA_window_pos, GL_NV_blend_square, GL_NV_light_max_exponent,
    GL_NV_texture_rectangle, GL_NV_texgen_reflection, GL_OES_read_format,
    GL_SGI_color_matrix, GL_SGI_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_SUN_multi_draw_arrays

   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
----------------------------------------------------------------------
0x23 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x24 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x25 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x26 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x27 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x28 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x29 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x2a 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x2b 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x2c 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x2d 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x2e 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x2f 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x30 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x31 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x32 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x63 32 tc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0  0 0 Ncon
[linux@dhcppc3 ~]$
Quote
Oh, and if possible use a low latency or realtime kernel
I do not know how to do it.

3- I could start freespace but I always quit at the point you should enter the pilot's name because it is too slow (the letter appears 5 seconds after typing it) but when I added -nosound option the game did not start
Code: [Select]
[linux@dhcppc3 freespace]$ ./fs2_open.bin -spec -glow -mipmap -jpgtga -orbradar -mod Media_VP -nosound
libGL warning: 3D driver claims to not support visual 0x63
do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly.
Try running with LIBGL_THROTTLE_REFRESH and LIBL_SYNC_REFRESH unset.
ERROR: " Web cursor bitmap not found.  This is most likely due to one of three reasons:         1) You're running FreeSpace Open from somewhere other than your FreeSpace 2 folder;  2) You've somehow corrupted your FreeSpace 2 installation;      3) You haven" at graphics/2d.cpp:1526
[linux@dhcppc3 freespace]$


5- i do not know why OSD instead of ALSA, how can I change it?

6- I am not using 3D Desktop

 

Offline Mars

  • I have no originality
  • 211
  • Attempting unreasonable levels of reasonable
Re: Freespace too slow on Linux
Try running with none of the flags, tell us what it does

 

Offline AGazzaz

  • 23
Re: Freespace too slow on Linux
Try running with none of the flags, tell us what it does


Code: [Select]
[linux@dhcppc3 freespace]$ ./fs2_open.bin
open /dev/[sound/]dsp: Device or resource busy
Could not open SDL library: libSDL.so: cannot open shared object file: No such file or directory
Could not open ESoundD library: libesd.so: cannot open shared object file: No such file or directory
Could not open aRts library: libartsc.so: cannot open shared object file: No such file or directory
libGL warning: 3D driver claims to not support visual 0x63
do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly.
Try running with LIBGL_THROTTLE_REFRESH and LIBL_SYNC_REFRESH unset.
ERROR: " Web cursor bitmap not found.  This is most likely due to one of three reasons:         1) You're running FreeSpace Open from somewhere other than your FreeSpace 2 folder;     2) You've somehow corrupted your FreeSpace 2 installation;      3) You haven" at graphics/2d.cpp:1526
[linux@dhcppc3 freespace]$

 

Offline Mars

  • I have no originality
  • 211
  • Attempting unreasonable levels of reasonable
Re: Freespace too slow on Linux
I don't know how the  Mandriva  repository system works, it does look like you're missing librarys though. Post your error in a  Mandriva  support forum, asking about how to aquire missing packages.

 

Offline AGazzaz

  • 23
Re: Freespace too slow on Linux
Thank you I will do that.
there is one more thing, I tried the to run the game with all the arguments and it gave the same error(the last one)
anyway If I find the solution I will post it here for the record.

Thank you all for your help.

 

Offline AGazzaz

  • 23
Re: Freespace too slow on Linux
I was running freespace form a folder containing only the executables.
Now I am getting this error
Code: [Select]
[linux@dhcppc3 Freespace]$ ./fs2_open.bin -nosound
libGL warning: 3D driver claims to not support visual 0x63
do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly.
Try running with LIBGL_THROTTLE_REFRESH and LIBL_SYNC_REFRESH unset.
[linux@dhcppc3 Freespace]$

Now the game is too slow again (you have to wait a few seconds till the mouse moves)

what can I do now?

 

Offline Herra Tohtori

  • The Academic
  • 211
  • Bad command or file name
Re: Freespace too slow on Linux
I was running freespace form a folder containing only the executables.

Eh, what?

You need to have at least the retail VP's (and the program needs permission to create /data/*/  directory tree for pilots and other data...) in the same directory as the executables. :nervous:
There are three things that last forever: Abort, Retry, Fail - and the greatest of these is Fail.

 

Offline AGazzaz

  • 23
Re: Freespace too slow on Linux
I have 2 folders called freespace
The first one containing the executables downloaded from the online installer and the other contains the game from HOTU
so I forgot and used the wrong folder, That's all.