On Thu, Oct 25, 2007 at 05:34:30PM -0300, Jorge Arellano Cid wrote:
On Thu, Oct 25, 2007 at 07:42:30PM +0000, place wrote:
I think my biggest problem is that I can't read a page until it's finished downloading because it's spending the whole time redrawing, redrawing, redrawing.
For me it's no problem to comment clear_double_buffer() in ui.cc, as long as we remember to fix the excess of redrawing.
I don't mind either, it's just one line anyway. And I think that dillo1 also has frequent redraws but they are not as apparent as the rendering is done to a pixmap and the result is copied. Can others please add the following debug messages to see how often dillo1 rerenders a certain page compared to dillo2 on their machines? dillo1: --- dillo-0.8.6/src/dw_gtk_viewport.c.orig 2007-10-25 22:36:44 +0200 +++ dillo-0.8.6/src/dw_gtk_viewport.c 2007-10-23 19:52:02 +0200 @@ -333,6 +333,7 @@ static void Dw_gtk_viewport_paint (GtkWi /* Widgets draw in backing pixmap. */ p_Dw_widget_draw (viewport->child, &intersection, event); /* Copy backing pixmap into window. */ +fprintf(stderr, "====> DRAW ======\n"); gdk_draw_pixmap (layout->bin_window, widget->style->black_gc, viewport->back_pixmap, area->x, area->y, area->x, area->y, area->width, area->height); dillo2: diff -r 31fd33cfb784 dw/fltkviewbase.cc --- a/dw/fltkviewbase.cc Wed Oct 24 22:25:25 2007 +0200 +++ b/dw/fltkviewbase.cc Thu Oct 25 22:51:11 2007 +0200 @@ -50,6 +50,7 @@ FltkViewBase::~FltkViewBase () void FltkViewBase::draw () { +fprintf(stderr, "====> DRAW ======\n"); Group::draw (); ::fltk::Rectangle rect (x(), y(), w(), h()); Johannes