Re: Speed improvement of gnome-terminal



>> On Sat, 2004-10-16 at 10:50 +0800, James Henstridge wrote:
>It looks like the newer versions of vte include a
> vte_terminal_set_font_full() function that includes a third argument
to
> set whether antialiasing should be used.  That argument has three
> values: use the default setting, force enable and force disable.
>

I have created a patch using the new libvte0.11.11 providing
antialiasing as an option. The user can turn antialiasing on/off by
changing the terminal settings per profile. This had made the gnome-
terminal far faster. Comparing the results for ls /dev on my system I
found that gnome-terminal displays the results atleast 3 times faster
with antialiasing turned off.
Have added a gconf setting for antialiasing which can be toggled on or
off by the user and the results are visible immediately.
Have used vte_terminal_set_font_full with the FORCE_DISABLE option to
turn antialiasing off.
This patch is for gnome-terminal 2.6 and uses libvte 0.11.11. For the
gconf descr. I have made changes only for the English version.

Do drop in your feedback about it.




On Sat, 2004-10-16 at 10:50 +0800, James Henstridge wrote:
> On 16/10/04 01:12, Nat Friedman wrote:
>
> >On Fri, 2004-10-15 at 01:00 +0100, Alan Cox wrote:
> >
> >  
> >
> >>gnome-terminal is also noticably faster with antialiasing off - as
you'd
> >>expect. That one seems to have a lot to do with poor render
acceleration
> >>in Xorg/XFree
> >>    
> >>
> >
> >Is there a way to turn antialiasing off only for gnome-terminal?
> >  
> >
> It looks like the newer versions of vte include a
> vte_terminal_set_font_full() function that includes a third argument
to
> set whether antialiasing should be used.  That argument has three
> values: use the default setting, force enable and force disable.
>
> It appears that gnome-terminal is using vte_terminal_set_font(), which
> is a wrapper for vte_terminal_set_font_full() that passes
> VTE_ANTI_ALIAS_USE_DEFAULT as the third argument.
>
> So it would be possible to get gnome-terminal to allow disabling of
> antialiasing.  It is probably worth making it check a gconf key to see
> if it should be disabled for the current profile, even if it is
decided
> that it would clutter the preferences dialog.
>
> Of course, the ideal solution would be if gnome-terminal could figure
> out whether antialiasing is slowing things down too much and turn off
AA
> in that case, but that sounds quite difficult to get right.
>
> James.
>

Attachment: gnome_terminal_antialias.diff
Description: Binary data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]