You are not logged in.
Hi,
I started using URxvt recently and I love it, especially the tabbed add-on. There's just one problem - with intensive use, after an hour or two it gets very slow in refreshing when switching between tabs or just using it. I mean the text redraw takes a while, like half a second, which is annoying when switching between many tabs.
Now I know xft is supposted to be slow and I'm using it, but I have a core 2 duo 2.33GHz CPU so I thought maybe it can handle xft... And it does, just after restart it works just faaaaast. But after an hour or so it's slow, and later it's even slower.
What is also interesting is that sometimes just resizing the window helps, like making it just a tad smaller, or even bigger. But after a couple resizes even that doesn't help.
So, is it xft that's getting slower and slower with use?
I also use the nvidia proprietary driver and I heard that causes problems, so could that be it?
Apart from that, I use kde 4.4. URxvt is 9.07 and nvidia is 195.36.03.
As for disabling xft: I'm currently using Code Envy R font and I love it, so if I can just keep using it without xft (can i?) then that's okay, otherwise I'd like to stick to xft if at all possible....
Does that happen to anybody else? What do you think may be the problem?
Thanks!
Offline
I spend more than half of my time in urxvt using xft with the nvidia drivers and never experience what you're talking about. Although, I don't use urxvt tabbed. Does htop, top, ps, or any other monitoring tool show any process out of control?
Offline
Are you running it as a daemon: urxvtd and then spawning instances of urxvtc?
Offline
Are you running it as a daemon: urxvtd and then spawning instances of urxvtc?
Great post. I should have mentioned that's how I'm running.
Offline
Cheers: from someone with +6k, that has to count...
kosmiciatakuja - with all that tabbing, you should probably take a look at tmux (or screen if you are old-school)...
Offline
Cheers: from someone with +6k, that has to count...
+6k can be a sign of caffeine abuse and not necessarily of skill level...
kosmiciatakuja,
Are you still working on this? urxvt should perform excellently on most machines, so it feels like that you have another problem.
Offline
Thanks everybody for all the suggestions. I have checked htop, atop and iotop to ensure nothing is eating my resources. The CPU is free, disk is free and most of memory is as well (I have 3gig so it's plenty). I'm not running in daemon mode and the slowing down is mostly visible when switching tabs so maybe that's it.
I'm familiar with tmux, thanks for the suggestion too, but I still can't get used to it's shortcuts. I like urxvt simple shift-left and shift-right to switch tabs. Maybe I can just reconfigure tmux hotkeys... I'll certainly go that way if I fail with getting urxvt to work properly but there's still a couple of things to try.
I'll try the daemon/client mode of urxvt and I'm also currently trying mrxvt with UTF-8 patch from aur, so far it works good but I need to put it to much more use before I can say it's really fast.
I understand urxvt should run fine on my machine, that's why I was really surprised when I noticed the slow downs. I suspected nvidia because they had some issues in the past with anti-aliased fonts, but seems like it was in the past. One thing's for sure - it made konsole really slow in some configurations. So I thought maybe urxvt is affected by that as well, but if it works for other people then I guess it's something else.
Thanks for all the suggestions everybody!
Last edited by kosmiciatakuja (2010-03-28 11:22:18)
Offline
You are not alone. I used rxvt-unicode long ago with nvidia driver and AA fonts.
I experienced exactly the same problem as you said. However that problem
went away at some point. Probably after I switched to a bitmap font. But I never
tried to solve the problem so I can't tell.
PS: I don't use urxvtd/urxvtc.
Last edited by eirika (2010-03-28 13:51:18)
Offline
If you think xft is causing your issues, use the non xft format for the font, and see if that helps.
Knute
Offline
Yes, I thought of just switching away from xft, but I'm not sure I understand how this works. Is xft for ttf/vector type fonts and if I switch it of, can I only use bitmap fonts? Or can I somehow use vector fonts (like Envy Code R that I'm using) without xft?
Offline
I use xft fonts (Envy Code R & Inconsolata) and Urxvt as a daemon with no performance issues. I'd try that if you want to stick with Envy...
Offline
Yes, I thought of just switching away from xft, but I'm not sure I understand how this works. Is xft for ttf/vector type fonts and if I switch it of, can I only use bitmap fonts? Or can I somehow use vector fonts (like Envy Code R that I'm using) without xft?
It's a different way of notating the font that you want.
If you want to see the format, use xfontsel That will let you see what the different options are, and when you get the font that you want, you can simply copy it straight out of the app and then paste it right into your Xdefaults file.
xfontsel, however, has a limited supply of sizes, so there is some adjustments necessary to get exactly what you want, but it's easier than trying to set it up yourself.
For the font that you want it would be:
-*-envy code r-*-*-*-*-17-*-*-*-*-*-*-*
Each asterisk stands for a default value, and 17 is the size. There are values for all kinds of things, and they are labeled in xfontsel.
HTH
Knute
Offline
Wow, thanks Knute, I'll try that, this was exactly what I needed to know!
Offline
okay, reporting back, so far two failures. First, not using xft somehow doesn't work, I selected the font using xfontsel and urxvt complains about the font like this:
urxvt: -misc-envy code r-bold-r-normal--17-123-100-100-m-0-adobe-standard: cannot deduce encoding from registry/encoding properties "adobe-standard", ignoring font.
Here's the relevant line from .Xdefaults:
URxvt.font: -*-envy code r-*-*-*-*-17-*-*-*-*-*-*-*
Also, using urxvtd (daemon mode) makes no change because I only run one window of urxvt and multiple tabs inside, and it that case (checked this with ps and htop) only one instance of urxvt runs, no matter if it's a daemon or client or standalone mode. It only spawns shells as I add tabs.
One thing I noticed is if the window is really small (like 40x80 chars) then it's much faster, but if I make it large, close to full screen it gets slow very quickly and it is very very slow then.
Offline
You could try with my .Xdefaults font settings - as they work for me without issue:
! -- Xft settings -- !
Xft.dpi: 96
Xft.antialias: true
Xft.rgba: rgb
Xft.hinting: true
Xft.hinstyle: hintslight
! -- Fonts -- !
URxvt.font:xft:envy code r:medium:pixelsize=12
URxvt.boldFont:xft:envy code r:medium:pixelsize=12
#edit Mind you, you should consider using antialias: false as the wiki suggests: http://wiki.archlinux.org/index.php/Urx … erformance
Last edited by jasonwryan (2010-03-30 08:59:32)
Offline
You could try with my .Xdefaults font settings - as they work for me without issue:
! -- Xft settings -- ! Xft.dpi: 96 Xft.antialias: true Xft.rgba: rgb Xft.hinting: true Xft.hinstyle: hintslight ! -- Fonts -- ! URxvt.font:xft:envy code r:medium:pixelsize=12 URxvt.boldFont:xft:envy code r:medium:pixelsize=12
#edit Mind you, you should consider using antialias: false as the wiki suggests: http://wiki.archlinux.org/index.php/Urx … erformance
i get really big horizontal spacing between letters when i use Envy (some other fonts too), don't you experience that?
ᶘ ᵒᴥᵒᶅ
Offline
jasonwryan wrote:You could try with my .Xdefaults font settings - as they work for me without issue:
! -- Xft settings -- ! Xft.dpi: 96 Xft.antialias: true Xft.rgba: rgb Xft.hinting: true Xft.hinstyle: hintslight ! -- Fonts -- ! URxvt.font:xft:envy code r:medium:pixelsize=12 URxvt.boldFont:xft:envy code r:medium:pixelsize=12
#edit Mind you, you should consider using antialias: false as the wiki suggests: http://wiki.archlinux.org/index.php/Urx … erformance
i get really big horizontal spacing between letters when i use Envy (some other fonts too), don't you experience that?
That's a topic for another thread.
Offline
okay, reporting back, so far two failures. First, not using xft somehow doesn't work, I selected the font using xfontsel and urxvt complains about the font like this:
urxvt: -misc-envy code r-bold-r-normal--17-123-100-100-m-0-adobe-standard: cannot deduce encoding from registry/encoding properties "adobe-standard", ignoring font.
Here's the relevant line from .Xdefaults:
URxvt.font: -*-envy code r-*-*-*-*-17-*-*-*-*-*-*-*
Also, using urxvtd (daemon mode) makes no change because I only run one window of urxvt and multiple tabs inside, and it that case (checked this with ps and htop) only one instance of urxvt runs, no matter if it's a daemon or client or standalone mode. It only spawns shells as I add tabs.
One thing I noticed is if the window is really small (like 40x80 chars) then it's much faster, but if I make it large, close to full screen it gets slow very quickly and it is very very slow then.
I had the same issues, you can easily fix it by choosing an encoding to the font string like iso8859 e.g.:
-*-envy code r-medium-r-*-*-14-*-*-*-*-*-iso8859-*
Offline
Just try adding:
URxvt*buffered:false
into your .Xdefaults. This helps me
Offline
Just try adding:
URxvt*buffered:false
into your .Xdefaults. This helps me
That fixed it!
I've been dealing with this for a while, thanks for posting this!
Offline
cf8, you are the man. I've had the problem on an off for at least a year. Hopefully this fix lasts.
Offline