Re: Speed improvement of gnome-terminal

On Thu, 2004-10-14 at 12:19 -0500, Brian Cameron wrote:
> Soeren:
> >>I suspect that the biggest performance boost that you could get out
> >>of gnome-terminal would be to improve the way it interacts with the
> >>Xserver.  I was recently working with the SunRay team and one of their
> >>benchmarks showed that xterm used an average bandwidth consumption of
> >>2kbs while gnome-terminal used an average of 35-38kbs.
> > 
> > 
> > FWIW, this was the first thing I checked when I looked at vte a while
> > back, and it didn't seem to be doing this. The way I checked was to
> > cat a large file and then check that the number of characters rendered
> > was approximately the same as the number of characters in the file.  I
> > could have missed something though.
> > 
> > If it actually is the case that it re-renders everything on every
> > scroll, then certainly that is the first thing to fix.
> I might be wrong about the re-rendering, but I believe I am correct
> about the fact that vte does not use Xcopy to quickly scroll regions.
> Instead it seems to use gdk_window_invalidate_rect, which I suspect
> is causing a more costly redraw.

vte/src/vte.c:vte_terminal_scroll_region() is actually pretty readable
if you want to check it out for yourself.

If you don't have a background pixmap or transparent background, the
code uses gdk_window_scroll(), which internally will use XCopyArea().


Attachment: signature.asc
Description: This is a digitally signed message part

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