Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2D performance in X
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
PerJ
n00b
n00b


Joined: 31 Aug 2003
Posts: 26
Location: Oslo, Norway

PostPosted: Tue Sep 02, 2003 3:54 pm    Post subject: 2D performance in X Reply with quote

I have a Radeon 8500 videocard and followed this guide http://www.gentoo.org/doc/en/ati-faq.xml to emerge 'xfree-drm' and the 'ati-drivers'.
After using Gnome for a while I noticed that the cpu-usage takes a huge hit (up to 100%) just by dragging a terminal-window around the screen. A couple of the xscreensavers are also painfully slow.

Is this the sort of behaviour I should expect, or is there a way to finetune X's 2d-performance?

Edit: fixed the URL
_________________
/PerJ
Back to top
View user's profile Send private message
Lycander
Guru
Guru


Joined: 10 Apr 2003
Posts: 468

PostPosted: Tue Sep 02, 2003 5:43 pm    Post subject: Reply with quote

Can you verify that DRI is working? Run 'glxinfo' in a terminal and look for "Direct Rendering" with a Yes or No value. A common mistake (that I myself have made) is that in the kernel config where you enable DRM, you should not enable any of the drivers listed below it. Just build in DRM support. Then in make.conf add the driver name you want to your USE variable. I have a Radeon 7500 so I added 'radeon' into my USE variable so when I emerge xfree-drm it only makes the radeon module.

After doing the above only then did I get a Yes for Direct Rendering in glxinfo. 2D performance was still sloppy (I can see the edges of the window leaving trails as it's redrawing above other windows). But it did boost my glxgears FPS and overal 2D performance is just a little better. CPU useage is not as heavy when moving windows rapidly.
_________________
* Blessing /dev/hda2 with holy penguin pee
Back to top
View user's profile Send private message
PerJ
n00b
n00b


Joined: 31 Aug 2003
Posts: 26
Location: Oslo, Norway

PostPosted: Tue Sep 02, 2003 7:28 pm    Post subject: Reply with quote

Right.
I ran glxinfo and got this:

Code:
name of display: :0.0
libGL error: failed to open DRM: Operation not permitted
libGL error: reverting to (slow) indirect rendering
display: :0  screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.3 Mesa 4.0.4
OpenGL extensions:
    GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_texture_border_clamp,
    GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
    GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
    GL_ARB_transpose_matrix, GL_EXT_abgr, GL_EXT_blend_color,
    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_texture_env_add,
    GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
    GL_EXT_texture_lod_bias
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
----------------------------------------------------------------------
0x23 24 tc  0 24  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x24 24 tc  0 24  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x25 24 tc  0 24  0 r  y  .  8  8  8  8  0 24  0 16 16 16 16  0 0 Slow
0x26 24 tc  0 24  0 r  .  .  8  8  8  8  0 24  0 16 16 16 16  0 0 Slow
0x27 24 tc  0 24  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x28 24 tc  0 24  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x29 24 tc  0 24  0 r  y  .  8  8  8  8  0 24  0  0  0  0  0  0 0 None
0x2a 24 tc  0 24  0 r  .  .  8  8  8  8  0 24  0  0  0  0  0  0 0 None
0x2b 24 dc  0 24  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x2c 24 dc  0 24  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x2d 24 dc  0 24  0 r  y  .  8  8  8  8  0 24  0 16 16 16 16  0 0 Slow
0x2e 24 dc  0 24  0 r  .  .  8  8  8  8  0 24  0 16 16 16 16  0 0 Slow
0x2f 24 dc  0 24  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x30 24 dc  0 24  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x31 24 dc  0 24  0 r  y  .  8  8  8  8  0 24  0  0  0  0  0  0 0 None
0x32 24 dc  0 24  0 r  .  .  8  8  8  8  0 24  0  0  0  0  0  0 0 None


I then su'ed and ran glxinfo again, and got a different output:

Code:
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: Radeon 8500 DDR Athlon (3DNow!)
OpenGL version string: 1.3 (X4.3.0-2.9.12)
OpenGL extensions:
    GL_ARB_multitexture, GL_EXT_texture_env_add, GL_EXT_compiled_vertex_array,
    GL_S3_s3tc, GL_ARB_point_parameters, 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_transpose_matrix,
    GL_ARB_vertex_blend, GL_ARB_vertex_program, GL_ARB_window_pos,
    GL_ATI_element_array, GL_ATI_envmap_bumpmap, GL_ATI_fragment_shader,
    GL_ATI_map_object_buffer, GL_ATI_texture_env_combine3,
    GL_ATI_texture_mirror_once, GL_ATI_vertex_array_object,
    GL_ATI_vertex_attrib_array_object, GL_ATI_vertex_streams,
    GL_ATIX_texture_env_combine3, GL_ATIX_texture_env_route,
    GL_ATIX_vertex_shader_output_point_size, GL_EXT_abgr, GL_EXT_bgra,
    GL_EXT_blend_color, GL_EXT_blend_func_separate, GL_EXT_blend_minmax,
    GL_EXT_blend_subtract, GL_EXT_clip_volume_hint,
    GL_EXT_draw_range_elements, GL_EXT_fog_coord, GL_EXT_multi_draw_arrays,
    GL_EXT_packed_pixels, GL_EXT_point_parameters, GL_EXT_rescale_normal,
    GL_EXT_polygon_offset, GL_EXT_secondary_color,
    GL_EXT_separate_specular_color, GL_EXT_stencil_wrap,
    GL_EXT_texgen_reflection, 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_bias, GL_EXT_texture_object, GL_EXT_texture_rectangle,
    GL_EXT_vertex_array, GL_EXT_vertex_shader, GL_HP_occlusion_test,
    GL_NV_texgen_reflection, GL_NV_blend_square, GL_NV_occlusion_query,
    GL_SGI_color_matrix, GL_SGI_texture_edge_clamp,
    GL_SGIS_texture_border_clamp, GL_SGIS_texture_lod,
    GL_SGIS_generate_mipmap, GL_SGIS_multitexture, GL_SUN_multi_draw_arrays
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
----------------------------------------------------------------------
0x23 24 tc  0 24  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x24 24 tc  0 24  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x25 24 tc  0 24  0 r  y  .  8  8  8  8  0 24  0 16 16 16 16  0 0 Slow
0x26 24 tc  0 24  0 r  .  .  8  8  8  8  0 24  0 16 16 16 16  0 0 Slow
0x27 24 tc  0 24  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x28 24 tc  0 24  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x29 24 tc  0 24  0 r  y  .  8  8  8  8  0 24  0  0  0  0  0  0 0 None
0x2a 24 tc  0 24  0 r  .  .  8  8  8  8  0 24  0  0  0  0  0  0 0 None
0x2b 24 dc  0 24  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x2c 24 dc  0 24  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x2d 24 dc  0 24  0 r  y  .  8  8  8  8  0 24  0 16 16 16 16  0 0 Slow
0x2e 24 dc  0 24  0 r  .  .  8  8  8  8  0 24  0 16 16 16 16  0 0 Slow
0x2f 24 dc  0 24  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x30 24 dc  0 24  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x31 24 dc  0 24  0 r  y  .  8  8  8  8  0 24  0  0  0  0  0  0 0 None
0x32 24 dc  0 24  0 r  .  .  8  8  8  8  0 24  0  0  0  0  0  0 0 None


So i guess DRI is working?
_________________
/PerJ
Back to top
View user's profile Send private message
Lycander
Guru
Guru


Joined: 10 Apr 2003
Posts: 468

PostPosted: Tue Sep 02, 2003 7:48 pm    Post subject: Reply with quote

Not sure why it only works for root but not regular users... that would explain the poor 2D performance because beyond XFree, your DE is run as your regular user and not root. I bet if you were to log in as root your desktop would be DRI aware and possibly 2D would be better.

Sorry but I'm at the end of my knowledge of this. Hopefully someone knows how to fix this.
_________________
* Blessing /dev/hda2 with holy penguin pee
Back to top
View user's profile Send private message
PerJ
n00b
n00b


Joined: 31 Aug 2003
Posts: 26
Location: Oslo, Norway

PostPosted: Tue Sep 02, 2003 8:58 pm    Post subject: Reply with quote

Hmmm, I can't really say i notice any gain in performance when I log in as root.
But then again, it might not be that much of a gain.

Well, thanks for the info anyways!
_________________
/PerJ
Back to top
View user's profile Send private message
kerrick
Tux's lil' helper
Tux's lil' helper


Joined: 22 Apr 2003
Posts: 141
Location: Strongbadia

PostPosted: Wed Sep 03, 2003 6:18 am    Post subject: Reply with quote

Check your /etc/X11/XF86Config for:
Code:
Section "DRI"
    Mode 0666
EndSection

That gives all users permission to use dri.

Also, you're not going to avoid 100% cpu usage when dragging windows.
Item 5.3 on http://www.osnews.com/story.php?news_id=1905&page=2 explains this issue.
_________________
Real men use every GAIM protocol.
Back to top
View user's profile Send private message
Lycander
Guru
Guru


Joined: 10 Apr 2003
Posts: 468

PostPosted: Wed Sep 03, 2003 7:39 am    Post subject: Reply with quote

Just for kicks I open System Monitor and a Nautilus window, dragged the Natilus window around really fast and sure enough it was using 100% CPU. It looked somewhat smooth, but still :?

So when are they going to make SNAP Graphics drivers for Linux PPC? :P
_________________
* Blessing /dev/hda2 with holy penguin pee
Back to top
View user's profile Send private message
PerJ
n00b
n00b


Joined: 31 Aug 2003
Posts: 26
Location: Oslo, Norway

PostPosted: Wed Sep 03, 2003 12:18 pm    Post subject: Reply with quote

Thanks, modifying XF86Config with 'Mode 0666' solved the DRI-problem. :)

Quote:
Also, you're not going to avoid 100% cpu usage when dragging windows.
Item 5.3 on http://www.osnews.com/story.php?news_id=1905&page=2 explains this issue.
Interesting read!

Edit: typo
_________________
/PerJ
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