You are not logged in.

#1 2014-02-10 19:39:19

Kolibry
Member
Registered: 2012-12-20
Posts: 110

Really bad performance in Urxvt

Hi everyone,

I'm having issues with urxvt, it's very lagging (tearing) when displaying a lot of text and it's a lot slower than Konsole or Xfce terminal for example.

I use native transparency. If i turn it off and kill compton, I can get rid of the tearing issue. But it doesn't change the fact that a command like :

cat /usr/share/dict/words

is soooooo long compared when I do it on another terminal.

I use xf86-video-ati driver if that can help. I use monofur font and Infinality font rendering.

I have been looking for hours in Internet, tried some things but nothing helps so far hmm

Thanks in advance !

Last edited by Kolibry (2014-02-10 19:45:03)


Asus 1225B - 11,6" -  AMD E-60 Dual Core 1,3Ghz - 4 Go RAM - Disque dur SSD 128 Go -  Radeon HD6290
ArchLinux Openbox - My Github

Offline

#2 2014-02-10 19:59:59

shazeal
Member
From: New Zealand
Registered: 2007-06-05
Posts: 341

Re: Really bad performance in Urxvt

You need to turn on Vsync in your driver or in compton.

To enable in compton use something like this.

compton --opengl --vsync opengl-swc --paint-on-overlay

Offline

#3 2014-02-10 20:50:27

Kolibry
Member
Registered: 2012-12-20
Posts: 110

Re: Really bad performance in Urxvt

Yes, running compton this way makes tearing go, but it didn't help with the amazingly low performance of urxvt.

For example :

With konsole

time cat /usr/share/dict/words
real    0m4.702s
user    0m0.000s
sys     0m0.343s

With urxvt

time cat /usr/share/dict/words
real	0m51.332s
user	0m0.000s
sys	0m0.600s

Asus 1225B - 11,6" -  AMD E-60 Dual Core 1,3Ghz - 4 Go RAM - Disque dur SSD 128 Go -  Radeon HD6290
ArchLinux Openbox - My Github

Offline

#4 2014-02-10 20:55:31

shazeal
Member
From: New Zealand
Registered: 2007-06-05
Posts: 341

Re: Really bad performance in Urxvt

Well the bug afaik is with XFT fonts in urxvt, the vsync thing is just a work around. You could try disabling XFT fonts to see if that is the issue you are having, it may be something different for you.

Offline

#5 2014-02-10 20:57:51

Kolibry
Member
Registered: 2012-12-20
Posts: 110

Re: Really bad performance in Urxvt

Switching from monofur to termsyn and disabling native transparency helps, but didn't get close to the amazing speed I have with urxvt on my other laptops (xft font and transparent too) hmm

Last edited by Kolibry (2014-02-10 20:58:17)


Asus 1225B - 11,6" -  AMD E-60 Dual Core 1,3Ghz - 4 Go RAM - Disque dur SSD 128 Go -  Radeon HD6290
ArchLinux Openbox - My Github

Offline

#6 2014-02-10 23:25:15

shazeal
Member
From: New Zealand
Registered: 2007-06-05
Posts: 341

Re: Really bad performance in Urxvt

I would think it is a driver issue then. Try disabling vsync in compton then enabling in the driver itself. Otherwise I run urxvt with all the bells and whistles using the Catalyst driver (14.1) with no issues.

Offline

#7 2014-02-11 08:07:18

Kolibry
Member
Registered: 2012-12-20
Posts: 110

Re: Really bad performance in Urxvt

I even tried without compton and nothing changes. I also can run a live usb with free drivers and no problems, the command ends in 1 second with urxvt, even faster than Konsole in my previous tests, si there's definitely something wrong with my config. Can it be Infinality fonts ?


Asus 1225B - 11,6" -  AMD E-60 Dual Core 1,3Ghz - 4 Go RAM - Disque dur SSD 128 Go -  Radeon HD6290
ArchLinux Openbox - My Github

Offline

#8 2014-02-11 15:59:55

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: Really bad performance in Urxvt

is this an Arch Linux system, or is it a fork like Manjaro?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#9 2014-02-11 16:42:09

Kolibry
Member
Registered: 2012-12-20
Posts: 110

Re: Really bad performance in Urxvt

No, it's Arch Linux. I had Manjaro before, and I never had this behaviour, it's very strange.


Asus 1225B - 11,6" -  AMD E-60 Dual Core 1,3Ghz - 4 Go RAM - Disque dur SSD 128 Go -  Radeon HD6290
ArchLinux Openbox - My Github

Offline

#10 2014-02-12 02:24:51

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: Really bad performance in Urxvt

This is strange.  Have you tried creating a new user without any customization and seeing how it performs?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#11 2014-02-12 08:32:23

Kolibry
Member
Registered: 2012-12-20
Posts: 110

Re: Really bad performance in Urxvt

Yes, it works perfectly. Thanks for the answer smile

I tried with my normal user tu run urxvt without Xresources file, and it also works perfectly.

Here is my .Xresources :

 !#####################
!####### URxvt #######
!#####################

URxvt*.transparent: true
!URxvt*.shading: 0 to 99 darkens, 101 to 200 lightens
URxvt*.shading: 10
URxvt.saveLines: 2000
URxvt.iconFile: /usr/share/icons/Buuf-Kolibry/128x128/apps/terminal.png
URxvt*scrollWithBuffer:  false
URxvt*skipScroll:  true
URxvt*buffered: false
!------------------------------------------------------------------------------
! URXVT - Settings
!URxvt*font: -*-termsyn-medium-*-normal-*-14-*-*-*-*-*-iso8859-1
!URxvt*boldFont: -*-termsyn-medium-*-normal-*-14-*-*-*-*-*-iso8859-1
!URxvt*font: xft:terminus:hinting=true:pixelsize=14:antialias=false
!URxvt*boldFont: xft:terminus:hinting=true:pixelsize=14:antialias=false
URxvt*font: xft:monofur:hinting=true:pixelsize=15:antialias=true
URxvt*boldFont: xft:monofur:hinting=true:pixelsize=15:antialias=true
!URxvt*font:                               xft:dejavusansmono:hinting=true:pixelsize=12:antialias=true
!URxvt*boldFont:                           xft:dejavusansmono:hinting=true:pixelsize=12:antialias=true
URxvt*geometry:		97x27
 

! URXVT ENABLE LINK SUPPORT
!------------------------------------------------

URxvt.perl-ext-common:  default,matcher,clipboard,url-select,url-picker
URxvt.keysym.C-u:    perl:url-select:select_next
URxvt.keysym.C-o: perl:keyboard-select:activate
URxvt.keysym.C-f: perl:keyboard-select:search
URxvt.url-select.underline: true
URxvt.url-select.launcher:	/usr/bin/firefox

URxvt.matcher.button:   1


! URXVT COPY PASTE SHORTCUTS
!------------------------------------------------


URxvt.keysym.M-c: 			perl:clipboard:copy
URxvt.keysym.M-v: 			perl:clipboard:pasteq
URxvt.keysym.C-Up:     perl:font-size:increase
URxvt.keysym.C-Down:   perl:font-size:decrease
URxvt.keysym.C-S-Up:   perl:font-size:incglobal
URxvt.keysym.C-S-Down: perl:font-size:decglobal
URxvt.iso14755: false
URxvt.iso14755_52: false

! URXVT SCROLLBAR AND CURSOR STYLE
!------------------------------------------------

URxvt*borderLess:                               false
URxvt*scrollBar:                                false
URxvt*cursorBlink:                              true
URxvt*cursorUnderline:                          true
URxvt*cursorColor:                              #ffffff
URxvt*scrollColor:                              #151515

!------------------------------------------------

URxvt.tabbedex.autohide: 	yes
URxvt.tabbedex.tabbar-fg: 	2
URxvt.tabbedex.tabbar-bg: 	0
URxvt.tabbedex.tab-fg:    	10
URxvt.tabbedex.tab-bg:    	2
URxvt.tabbedex.title: 		yes
URxvt.tabbedex.new-button:  yes

! URXVT FULLSCREEN TOGGLE
!------------------------------------------------

URxvt.keysym.F11: 			perl:fullscreen:switch


!#include "/home/kolibry/.colorschemes/blinks"
!#include "/home/kolibry/.colorschemes/cathexis"
!#include "/home/kolibry/.colorschemes/euphrasia"
#include "/home/kolibry/.colorschemes/gjm-kolibry"
!#include "/home/kolibry/.colorschemes/gjm"
!#include "/home/kolibry/.colorschemes/visiblue"
!#include "/home/kolibry/.colorschemes/count-von-count"
!#include "/home/kolibry/.colorschemes/astromouse"
!#include "/home/kolibry/.colorschemes/euphrasia-white"
!#include "/home/kolibry/.colorschemes/jwr-dark"
!#include "/home/kolibry/.colorschemes/mias-uzte"
!#include "/home/kolibry/.colorschemes/ivory-light"
!#include "/home/kolibry/.colorschemes/blinks"

!#####################
!####### XTerm #######
!#####################

XTerm*cursorColor:  cyan
XTerm*cursorBlink:      true
XTerm*cursorUnderline:   true
XTerm*faceName:     -*-termsyn-medium-*-normal-*-14-*-*-*-*-*-iso8859-1
XTerm*faceSize:     9

XTerm*metaSendsEscape: true

XTerm.vt100.geometry:   97x24

Xterm*saveLines: 4000

!#### Couleurs ####


  
XTerm*VT100.background:    #121212                                                                                                                                         
                                                                                                                                                                                                                                                                                        
XTerm*VT100.color0:    #1c1c1c                                                                                                                                         
XTerm*VT100.color8:    #666666                                                                                                                                              
                                                                                                                                                                            
XTerm*VT100.color1:    #ff005b                                                                                                                                             
XTerm*VT100.color9:    #ff00a0                                                                                                                                            
                                                                                                                                                                            
XTerm*VT100.color2:    #1AAA13                                                                                                                                            
XTerm*VT100.color10:   #5DCE33                                                                                                                                              
                                                                                                                                                                            
XTerm*VT100.color3:    #FFAA3E                                                                                                                                            
XTerm*VT100.color11:   #FADD2D                                                                                                                                             
                                                                                                                                                                            
XTerm*VT100.color4:   #048ac7                                                                                                       
XTerm*VT100.color12:   #48c6ff                                                                                                                                              
                                                                                                                                                                            
XTerm*VT100.color5:  #9734BE                                                                                                                                               
XTerm*VT100.color13:   #be67e1                                                                                                                                             
                                                                                                                                                                            
XTerm*VT100.color6:  #0ac1cd                                                                                                                                             
XTerm*VT100.color14:   #63e7f0                                                                                                                                             
                                                                                                                                                                            
XTerm*VT100.color7:   #e5e5e5                                                                                                                                             
XTerm*VT100.color15:  #f3f3f3                                                                                                                                            
                                                                                                                                                     
XTerm*VT100.foreground:    #c5c5c5   

Asus 1225B - 11,6" -  AMD E-60 Dual Core 1,3Ghz - 4 Go RAM - Disque dur SSD 128 Go -  Radeon HD6290
ArchLinux Openbox - My Github

Offline

#12 2014-02-12 16:00:46

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: Really bad performance in Urxvt

I have never tried many of those settings.  I would suggest a binary search -- comment out about half of them, and see if it improves.  If it doesn't. then the ones you commented were not at fault.  Uncomment them, and comment half the ones you did not try before; lather, rinse, repeat...


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#13 2014-02-13 17:58:15

Kolibry
Member
Registered: 2012-12-20
Posts: 110

Re: Really bad performance in Urxvt

It seems that transparency si responsable, at least for the most part. I still don't understand as I didn't have this behaviour on other but similar configs. Maybe a driver issue but everything is working fine except this.


Asus 1225B - 11,6" -  AMD E-60 Dual Core 1,3Ghz - 4 Go RAM - Disque dur SSD 128 Go -  Radeon HD6290
ArchLinux Openbox - My Github

Offline

Board footer

Powered by FluxBB