From: Krzysztof H. <krz...@wp...> - 2007-05-11 06:00:55
|
Dnia 10-05-2007 o godz. 22:36 Antonino A. Daplas napisał(a): > On Fri, 2007-05-11 at 04:24 +0800, Antonino A. Daplas wrote: > > If you do, it might even be wise to change the default from > > SCROLL_REDRAW to SCROLL_MOVE...? > > > Come to think of it we'll probably just let the driver choose the scroll > method. > > SCROLL_MOVE is faster at lower bit depths because the bitmap preparation > for the putcs method slows down SCROLL_REDRAW. But as the bit depth > goes up, the amount of data moved by bmove goes up but at a higher rate > than the data moved by putcs. Thus SCROLL_MOVE loses its edge at 16-32 > bpp. At what point these lines intersect we really don't know as it > depends on the hardware and the driver's imageblit/copyarea > implementation. > If you want really complicated solution one can switch FB_READS_FAST flag depending on the bit depth inside each driver ;-) I think that a simple solution is to leave everything untouched except tdfxfb and nvidiafb drivers. These two should add FB_READS_FAST flag permanently to use blitter for scrolling. Take into account that the faster machine may speed up the redraw operation, because it is faster, while blitting will have the same speed. On the other hand, most cards I have cannot even closely compare their on-board memory bandwidth to the one on newer cards like Geforce or Radeon (so blitting should be much faster on the newer cards). The blitting merge can help these cards (no hardware to tests). Regards, Krzysztof ---------------------------------------------------- Wczoraj chodziło o honor. Dzisiaj - o sprawiedliwość. Mark Wahlberg i Danny Glover w pełnym akcji filmie "STRZELEC" - w kinach od 11 maja. http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fstrzelec.html&sid=1134 |