From: "Antonino A. Daplas" <adaplas@gmail.com>
To: linux-fbdev-devel@lists.sourceforge.net
Subject: Re: pm2fb with acceleration is slow
Date: Mon, 07 May 2007 17:09:01 +0800 [thread overview]
Message-ID: <1178528941.4815.7.camel@daplas> (raw)
In-Reply-To: <463ed4f8341d4@wp.pl>
On Mon, 2007-05-07 at 09:27 +0200, Krzysztof Helt wrote:
> Hi,
>
> Recently, I have added accelerated methods for fillrect and
> copyarea. Scrolling has become very slow (about ten times slower).
>
> The fillrect function speeds ups things - the clear command is
> few times faster and scrolling is few percent faster.
>
> The copyarea method makes scrolling much slower. Any hints?
Without any acceleration, the default scrolling is redraw, basically
it's all framebuffer writes with minimal reads. With copyarea, reads
generally equal writes.
So one possibility is slow bus reads, even with acceleration. Another
possibility is that wait_pm2() is taking a long time, so you can try
removing that from copyarea.
Another possibility is that you're wait_pm2() function is also waiting
for vblank which can really slow it down.
You can also try to instrument copyarea, ie by making a private ioctl
that calls your copyarea function. Then compare how long it takes to say
copy 1000 500x500 rectangles, with and without the wait_pm2() function.
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/
prev parent reply other threads:[~2007-05-07 9:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-07 7:27 pm2fb with acceleration is slow Krzysztof Helt
2007-05-07 9:09 ` Antonino A. Daplas [this message]
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=1178528941.4815.7.camel@daplas \
--to=adaplas@gmail.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).