User: Password:
Subscribe / Log in / New account

scrolling speed

scrolling speed

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

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>
  <edit name="antialias" mode="assign">

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).

(Log in to post comments)

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 © 2018, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds