* pm2fb with acceleration is slow
@ 2007-05-07 7:27 Krzysztof Helt
2007-05-07 9:09 ` Antonino A. Daplas
0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Helt @ 2007-05-07 7:27 UTC (permalink / raw)
To: linux-fbdev-devel
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?
Regards,
Krzysztof
----------------------------------------------------
Ju¿ nied³ugo pierwsza komunia! Zrób naprawdê niezapomniany prezent:
Piêknie wydany i zilustrowany album do uzupe³nienia przez dziecko
bêdzie na ca³e ¿ycie kronik± Pierwszej Komunii ¦wiêtej - Zobacz:
http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fkom.html&sid=1125
-------------------------------------------------------------------------
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: pm2fb with acceleration is slow
2007-05-07 7:27 pm2fb with acceleration is slow Krzysztof Helt
@ 2007-05-07 9:09 ` Antonino A. Daplas
0 siblings, 0 replies; 2+ messages in thread
From: Antonino A. Daplas @ 2007-05-07 9:09 UTC (permalink / raw)
To: linux-fbdev-devel
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-07 9:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-07 7:27 pm2fb with acceleration is slow Krzysztof Helt
2007-05-07 9:09 ` Antonino A. Daplas
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).