Robert:

> Well, other than the fact that a lot of what I have been doing in
> Scintilla the past few weeks has been to avoid doing [horrendously
> expensive] full Redraw() calls? ;)

   These are all duplicate full Redraw() calls, which should not
change the invalid region. I modified Redraw() to perform its
operations 100 times rather than once and this cost less than a
millisecond. The cost of an extra Redraw() is about 0.000007 seconds
on a fairly old machine. The cost of the paint caused by a Redraw() is
around 0.06 to 0.12 seconds, depending on how much text is in the
window. If you call Redraw() a hundred times you still get the single
0.06 to 0.12 second paint.
 
> While I definitely share your feelings about the widespread code
> changes, isn't this (avoiding gratuitous Redraws) what some of your
> code is already about - look at SetScrollBars() itself.  It *could*
> have just blindly done an extra Redraw (or two)...

   If you don't have to repaint the whole window then you should avoid
it, but this is trying to optimize the case where you are already
committed to a full redraw.

   Neil

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to