linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Antonino A. Daplas" <adaplas@gmail.com>
To: linux-fbdev-devel@lists.sourceforge.net
Cc: "Geert.Uytterhoeven" <Geert.Uytterhoeven@sonycom.com>
Subject: Re: Text console scrolling
Date: Thu, 19 Jul 2007 00:08:56 +0800	[thread overview]
Message-ID: <1184774936.4523.64.camel@daplas> (raw)
In-Reply-To: <Pine.LNX.4.62.0707181708020.15632@pademelon.sonytel.be>

On Wed, 2007-07-18 at 17:10 +0200, Geert Uytterhoeven wrote:
> 	Hi all,
> 
> Yesterday, FBINFO_READS_FAST was faster in some cases, but much slower in
> others, so I didn't really know whether I should enable it or not.
> 
> Today, FBINFO_READS_FAST is faster in all test cases, so the choice is clear.
> 

The improvement of scroll_move is courtesy of Ondrej's smart blitter
patch. Basically, it only does an actual move if the content of the
source is different from the destination.  If the source == destination,
the actual move is skipped.
 
> Note that there are still a few cases where today's fastest option is a bit
> slower than yesterday's fastest option.
> 

All things equal, the speed of the smart blitter will depend on:

1. the amount of text to be scrolled;
2. the difference of the content of the screen to be scrolled and of the
contents of the screen to be scrolled into; and 
3. the amount of time the cpu spends for the comparison.

The less different the contents, the more the smart blitter will speed
up (because less characters are actually moved). If the contents are
totally different, then the blitter spends as much time as the old
(dumb) blitter plus the time spent on the compare. 

For the old (dumb) scroll_move, the scrolling speed is only dependent on
the amount of text to be scrolled. No cpu time is spent on the compare.

For the most common usage (screen has lots of whitespaces and blank
lines), I bet the smart blitter will perform very well.

Tony



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

  reply	other threads:[~2007-07-18 16:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-18 15:10 Text console scrolling Geert Uytterhoeven
2007-07-18 16:08 ` Antonino A. Daplas [this message]
2007-07-19 18:20   ` Krzysztof Helt
2007-07-20 12:21     ` Geert Uytterhoeven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1184774936.4523.64.camel@daplas \
    --to=adaplas@gmail.com \
    --cc=Geert.Uytterhoeven@sonycom.com \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).