User: Password:
|
|
Subscribe / Log in / New account

scrolling speed

scrolling speed

Posted Jun 5, 2004 7:04 UTC (Sat) by jamesh (guest, #1159)
In reply to: scrolling speed by donio
Parent article: The Grumpy Editor's guide to terminal emulators

Out of interest, were you using the same fonts in each terminal emulator? For gnome-terminal, were you using a monochrome or antialiased font?

Did you use a core X font in xterm (set with the -fn argument), or a fontconfig font (set with the -fa/-fs arguments)? Does it make much of a difference if you put xterm into unicode mode?

Rxvt may be faster than the other terminal emulators, but its speed comes at the cost of features. You might not require some of the features found in the slower terminals, but some people can't do without them (a good example is the accessibility support found in gnome-terminal).


(Log in to post comments)

scrolling speed

Posted Jun 5, 2004 7:39 UTC (Sat) by donio (guest, #94) [Link]

For rxvt and xterm I specified the following font using X resources:

-*-lucidatypewriter-medium-r-*-*-*-120-*-*-*-*-iso8859-*

For gnome-terminal and konsole I tried selecting the same font using
menu selections. I had to select the size by pixels instead of points
but I think I got the same font.

Also, I normally run with

export GDK_USE_XFT=0

to disable the antialiased fonts in GTK (I like my fonts nice and
crisp, not fuzzy) so that was in effect too, but in my experience that
only increases the performance.

Terminal size was the default 80x25 size in all cases.

If you or anyone else has the time it would be great if you could try
reproducing this or do some similar test to make sure that the bad
gnome-terminal result is not caused by some peculiarity in my setup.

Thanks

scrolling speed

Posted Jun 5, 2004 11:06 UTC (Sat) by jamesh (guest, #1159) [Link]

Did you know that setting the GDK_USE_XFT environment variable to 0 will actually make VTE run slower? In pretty much all cases Xft will be faster than core fonts if you disable antialiasing, so most of the work goes into the default font rendering technology (which is now the only available font renderer for GTK in 2.4). So you actually deoptimised gnome-terminal for your tests.

If you prefer monochrome glyphs for a particular font, try putting something like this in your ~/.fonts.conf file:

<match target="font">
  <test name="family" compare="eq">
    <string>Terminal Font Name</string>
  </test>
  <edit name="antialias" mode="assign">
    <bool>false</bool>
  </edit>
</match>

You will probably need to restart gnome-terminal after the change in order for it to take effect.

Alternatively, you can just copy a bitmap font in uncompressed .pcf format to ~/.fonts and use that (the bitmap font will actually be faster to render too, which should improve performance). This should make it usable from gnome-terminal and any other terminal that can use Xft/fontconfig (such as xterm).

scrolling speed

Posted Jun 5, 2004 20:04 UTC (Sat) by donio (guest, #94) [Link]

Thank you for the advice, I appreciate your help!

I did some more testing this morning and here is what I found:

1. Yesterday I was *not* using the same font (lucidatypewriter) for
gnome-terminal that I used for the others. I must have left the "use
the system terminal font" setting on by accident. I am sorry about the
misleading numbers.

When I actually use lucidatypewriter I get 70 seconds instead of 300.

2. Even when using the system terminal font setting I am able to get
the 70s result by disabling antialiasing using your suggested .fonts.conf setting.

3. GDK_USE_XFT=0 doesn't seem to make a difference with the version of
gnome-terminal (2.4.2) and GTK (2.2.4) I have available. It doesn't
affect performance and it doesn't turn off antialiasing - I verified
that with xmag :)

70 seconds, while still a bit slower than the others (and a lot slower
than rxvt), is definitely major improvement over 300!

I will stop using GDK_USE_XFT=0 and learn about fontconfig.


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds