Looks like I forgot to send this answer...
Andre Poenitz wrote:
On Sat, Nov 25, 2006 at 11:37:29AM +0100, Abdelrazak Younes wrote:
You misunderstood the problem.
Probably.
Drawing math is not faster nor slower than the rest. What's
problematic is to have to redraw when navigating with the mouse or the
keyboard. We don't need to redraw for other insets, only for mathed
because of the pink corners.
But also this logic has been in for ages, at least since a time well
before drawing got slow.
LyX has been ported to Mac and Windows in the mean time. Metrics
calculation on X11 are cheap it seems, that's why you didn't notice the
problem up until recently.
What is even worse is that what we have to redraw the entire screen
(but this last PB can probably be optimized).
Well, we could draw the main contents from the pixmap cache and draw the
pink corners on top of that.
This might also improve things when used for selection drawing. In this
case the pixmap would need transparent background and the selection
drawn first, then the cached contents from the pixmap and then pink
corners or whatever decoration needed elsewhere on top of that.
Yes, I also thought already about doing that. It would be a perfect
solution IMO. It doesn't look too complicated to implement at a first
glance but I don't know if I'll find the time to it.
Abdel.