Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Slow GUI Performance as Compared to Windows
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
TheChuckster
Tux's lil' helper
Tux's lil' helper


Joined: 18 Aug 2003
Posts: 91

PostPosted: Mon Nov 01, 2004 2:54 pm    Post subject: Slow GUI Performance as Compared to Windows Reply with quote

I am having a problem that is keeping me from using Linux. When I am in Linux and windows draw, for example, I can literally see the widgets like the buttons, window bar, icons, and text appear one by one in split second increments. Also, the move and resize window operations are terribly slow, too.

In Windows, everything is drawn "instantly" on the screen and is a lot snappier.

I have heard many people say that their desktop is just as fast as XP's. How can I achieve this performance in Linux?
Back to top
View user's profile Send private message
ninjabadger
Apprentice
Apprentice


Joined: 23 Apr 2003
Posts: 270
Location: Scotland

PostPosted: Mon Nov 01, 2004 3:00 pm    Post subject: Reply with quote

Which linux distro did you try?

and did you use xorg or xfree as the x server?

Doing things like compiling your own kernel will also help the graphics speeds.

My machine at home now runs much faster for both drawing and loading general applications than windows ever did, things like blender, the GIMP etc are wicked fast :)
Back to top
View user's profile Send private message
titan100
n00b
n00b


Joined: 06 Sep 2004
Posts: 61

PostPosted: Mon Nov 01, 2004 3:05 pm    Post subject: Reply with quote

Well, if you have either nvidia or ati I would recommend setting up the binary drivers from them ( both are in portage), when I use them the graphics are whicked fast on my box at home with gf4t4200, although sure the 2d performance is somewhat good using the normal driver it's much better with the drivers from nvidia/ati, befare though that I have had some problems with ati's fxglr driver, it crashes when I use xscreensaver on my laptop(ati4200) but it gives me a solid 1500 fps in a normal size window with glxgears (box at home gives me ~4000).

I have only used ati / nvidia with linux so this advice assumes you have one if not, then you have to find the driver to suit you.

So what graphics driver is your x using?
_________________
http://www.thoron.org
Back to top
View user's profile Send private message
JackDog
Apprentice
Apprentice


Joined: 09 Sep 2004
Posts: 297
Location: St. Louis, Missoura

PostPosted: Mon Nov 01, 2004 3:26 pm    Post subject: Reply with quote

Definitely sounds like this user does not have DRI or DRM properly installed. This is still a sore spot for linux in terms of configuration because every card has different limitations and driver installation procedures.

What video card are you using and what does the command `glxinfo` produce when you run it from a terminal within X?

There is also a change you are using the wrong driver from within X. Vesa works but is very slow on some cards.

On some older cards, like my notebook running the vesa driver or even the correct (savage) driver without DRI makes the WM very sluggish.
Back to top
View user's profile Send private message
Gekko
l33t
l33t


Joined: 29 Oct 2002
Posts: 773

PostPosted: Mon Nov 01, 2004 3:37 pm    Post subject: Reply with quote

JackDog wrote:
What video card are you using and what does the command `glxinfo` produce when you run it from a terminal within X?

Why should glxinfo make a interesting output on this issue? Its GL and not 2D GUI drawing.

Interesting should be something like:
I use this graphiccard with these drivers on Xorg or Xfree on this machine with these specs with this WM/DE, including the versions of them. Tell us more about your setting, then we can help a lot more.
Back to top
View user's profile Send private message
JackDog
Apprentice
Apprentice


Joined: 09 Sep 2004
Posts: 297
Location: St. Louis, Missoura

PostPosted: Mon Nov 01, 2004 3:42 pm    Post subject: Reply with quote

Gekko wrote:
JackDog wrote:
What video card are you using and what does the command `glxinfo` produce when you run it from a terminal within X?

Why should glxinfo make a interesting output on this issue? Its GL and not 2D GUI drawing.

Interesting should be something like:
I use this graphiccard with these drivers on Xorg or Xfree on this machine with these specs with this WM/DE, including the versions of them. Tell us more about your setting, then we can help a lot more.



glxinfo will tell you if DRI is actually usable, even if Xorg thinks it is it may not be. This is a common problem with lesser known or older video cards.
Back to top
View user's profile Send private message
Gekko
l33t
l33t


Joined: 29 Oct 2002
Posts: 773

PostPosted: Mon Nov 01, 2004 3:45 pm    Post subject: Reply with quote

JackDog wrote:
glxinfo will tell you if DRI is actually usable, even if Xorg thinks it is it may not be. This is a common problem with lesser known or older video cards.

That sounds logical. I thougt it prints only info regarding GL. Sorry, my fault.
Back to top
View user's profile Send private message
TheChuckster
Tux's lil' helper
Tux's lil' helper


Joined: 18 Aug 2003
Posts: 91

PostPosted: Mon Nov 01, 2004 11:20 pm    Post subject: Reply with quote

Well, I am using Gentoo with a kernel I compiled myself and xorg-x11 6.8.0-r1.

Code:
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,
    GLX_ARB_multisample
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_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGI_swap_control, GLX_NV_float_buffer
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_multisample, GLX_ARB_get_proc_address
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce4 Ti 4600/PCI/SSE2
OpenGL version string: 1.4.1 NVIDIA 53.36
OpenGL extensions:
    GL_ARB_depth_texture, GL_ARB_imaging, GL_ARB_multisample,
    GL_ARB_multitexture, GL_ARB_occlusion_query, GL_ARB_point_parameters,
    GL_ARB_point_sprite, 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_dot3, GL_ARB_texture_mirrored_repeat,
    GL_ARB_transpose_matrix, GL_ARB_vertex_buffer_object,
    GL_ARB_vertex_program, 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_compiled_vertex_array,
    GL_EXT_draw_range_elements, GL_EXT_fog_coord, GL_EXT_multi_draw_arrays,
    GL_EXT_packed_pixels, GL_EXT_paletted_texture, GL_EXT_point_parameters,
    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_texture3D,
    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_HP_occlusion_test, GL_IBM_rasterpos_clip,
    GL_IBM_texture_mirrored_repeat, GL_KTX_buffer_region, GL_NV_blend_square,
    GL_NV_copy_depth_to_color, GL_NV_depth_clamp, GL_NV_fence,
    GL_NV_fog_distance, GL_NV_light_max_exponent,
    GL_NV_multisample_filter_hint, GL_NV_occlusion_query,
    GL_NV_packed_depth_stencil, GL_NV_pixel_data_range, GL_NV_point_sprite,
    GL_NV_register_combiners, GL_NV_register_combiners2,
    GL_NV_texgen_reflection, GL_NV_texture_compression_vtc,
    GL_NV_texture_env_combine4, GL_NV_texture_rectangle, GL_NV_texture_shader,
    GL_NV_texture_shader2, GL_NV_texture_shader3, GL_NV_vertex_array_range,
    GL_NV_vertex_array_range2, GL_NV_vertex_program, GL_NV_vertex_program1_1,
    GL_NVX_ycrcb, GL_SGIS_generate_mipmap, GL_SGIS_multitexture,
    GL_SGIS_texture_lod, GL_SGIX_depth_texture, GL_SGIX_shadow,
    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 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16 16  0 0 None
0x22 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16 16  0 0 None
0x23 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16 16  0 0 None
0x24 16 tc  0 16  0 r  y  .  5  6  5  0  0 24  8 16 16 16 16  0 0 None
0x25 16 tc  0 16  0 r  .  .  5  6  5  0  0 24  8 16 16 16 16  0 0 None
0x26 16 tc  0 16  0 r  y  .  5  6  5  0  0  0  0 16 16 16 16  0 0 None
0x27 16 tc  0 16  0 r  .  .  5  6  5  0  0  0  0 16 16 16 16  0 0 None
0x28 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16 16  2 1 Ncon
0x29 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16 16  4 1 Ncon
0x2a 16 tc  0 16  0 r  y  .  5  6  5  0  0 24  8 16 16 16 16  2 1 Ncon
0x2b 16 tc  0 16  0 r  y  .  5  6  5  0  0 24  8 16 16 16 16  4 1 Ncon
0x2c 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16 16  0 0 None
0x2d 16 dc  0 16  0 r  y  .  5  6  5  0  0 24  8 16 16 16 16  0 0 None
0x2e 16 dc  0 16  0 r  .  .  5  6  5  0  0 24  8 16 16 16 16  0 0 None
0x2f 16 dc  0 16  0 r  y  .  5  6  5  0  0  0  0 16 16 16 16  0 0 None
0x30 16 dc  0 16  0 r  .  .  5  6  5  0  0  0  0 16 16 16 16  0 0 None
0x31 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16 16  2 1 Ncon
0x32 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16 16  4 1 Ncon
0x33 16 dc  0 16  0 r  y  .  5  6  5  0  0 24  8 16 16 16 16  2 1 Ncon
0x34 16 dc  0 16  0 r  y  .  5  6  5  0  0 24  8 16 16 16 16  4 1 Ncon


Code:
Linux chuckspc 2.6.9-ck1 #1 SMP Sat Oct 23 04:06:49 EDT 2004 i686 Intel(R) Pentium(R) 4 CPU 2.20GHz GenuineIntel GNU/Linux


Code:
Section "ServerLayout"
        Identifier     "XFree86 Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        ModulePath   "/usr/X11R6/lib/modules"
        FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
        FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
        FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
        FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
        Load  "extmod"
        #Load  "dri"
        Load  "dbe"
        Load  "record"
        Load  "xtrap"
        Load  "glx"
        Load  "speedo"
        Load  "type1"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "keyboard"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "IMPS/2"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "SWcursor"                  # [<bool>]
        #Option     "HWcursor"                  # [<bool>]
        #Option     "NoAccel"                   # [<bool>]
        #Option     "ShowCache"                 # [<bool>]
        #Option     "ShadowFB"                  # [<bool>]
        #Option     "UseFBDev"                  # [<bool>]
        #Option     "Rotate"                    # [<str>]
        #Option     "VideoKey"                  # <i>
        #Option     "FlatPanel"                 # [<bool>]
        #Option     "FPDither"                  # [<bool>]
        #Option     "CrtcNumber"                # <i>
        Identifier  "Card0"
        Driver      "nvidia"
#       Driver  "vesa"
        Option "NvAGP" "1"
        VendorName  "nVidia Corporation"
        BoardName   "NV25 [GeForce4 Ti 4600]"
        BusID       "PCI:1:0:0"
        Option "NoLogo"
        Option "RenderAccel" "on"
EndSection

#Section "Extensions"
#       Option "Composite" "Enable"
#       Option "RENDER" "Enable"
#EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth    16
        SubSection "Display"
                Modes     "1280x1024"
                Depth     16
        EndSubSection
EndSection
Back to top
View user's profile Send private message
TheChuckster
Tux's lil' helper
Tux's lil' helper


Joined: 18 Aug 2003
Posts: 91

PostPosted: Mon Nov 01, 2004 11:21 pm    Post subject: Reply with quote

There has to be something wrong if people have X faster than Windows...
Back to top
View user's profile Send private message
Adamal
Apprentice
Apprentice


Joined: 05 Dec 2003
Posts: 264
Location: California

PostPosted: Mon Nov 01, 2004 11:48 pm    Post subject: Reply with quote

TheChuckster wrote:
There has to be something wrong if people have X faster than Windows...


What are the specs on your machine?
_________________
Cry Havoc and Let Slip the dogs of War!
Back to top
View user's profile Send private message
TheChuckster
Tux's lil' helper
Tux's lil' helper


Joined: 18 Aug 2003
Posts: 91

PostPosted: Tue Nov 02, 2004 1:08 am    Post subject: Reply with quote

2.2 GHZ Pentium 4
NVidia GeForce 4 Ti4600
256 MB RAM
Back to top
View user's profile Send private message
titan100
n00b
n00b


Joined: 06 Sep 2004
Posts: 61

PostPosted: Tue Nov 02, 2004 1:15 am    Post subject: Reply with quote

what do you get when you run glxgears ?

I have similar specs and X runs extremely smooth on my machine, much faster than windows.
_________________
http://www.thoron.org
Back to top
View user's profile Send private message
nyda
Apprentice
Apprentice


Joined: 12 Aug 2004
Posts: 183

PostPosted: Tue Nov 02, 2004 1:46 am    Post subject: Reply with quote

TheChuckster wrote:
There has to be something wrong if people have X faster than Windows...


People don't have X faster than Windows when it comes to drawing operations. That's just plain impossible considering X's ancient concept of hardware "accelleration" (which is a lot slower than pure software for most operations today...). Some applications might "feel" faster, but X itself is definetly not.

As for widget redraw, using the xdamage extension you could reduce redraw times and flickering. Unfortunatly windows which are minimized or currently on another desktop are removed from the buffer (at least when using metacity...), so redrawing them is still as slow as always.

So, if you resize a window and scrollbars don't stay attached to the windowborder but lag slightly behind it, if moving one window over another (i.e. Mozilla :) ) causes the one below to flicker and redraw stuff, if changing tabs in gtk is dogslow when using pixmap themes or pixmap themes in general are about 40-60 times slower than they should be by any means, then everything is perfectly fine. Welcome to the world of xwindows.

On the brighter side, a lot of work is done by the xorg and fdo people. Maybe we'll eventually get desktop performance comparable to windows. Right now, that's just not the case though.

Now I know some people can't resist and will flame me. Before you do, you might want to google for "xrender vs imlib" or similar topics related to xwindows performance. Those benchmarks usually mean a lot more than just "it feels faster". I'm also not saying 'everything is bad', but I don't think claiming something is good when it actually is not is a good idea in the long run either.

my 1 1/2 cent.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum