On Friday 06 December 2002 2:22 pm, John Levon wrote:
> On Fri, Dec 06, 2002 at 10:09:02AM +0000, Angus Leeming wrote:
> > And a totally different idea. This is for xforms, but the idea should
> > also work for Qt. Here's the redraw function:
> >
> > Everything here is cheap except for the last call, to the LyX core. So
> > why not shove it on a timer and discard FL_DRAW events that occur within
> > 0.2 secs in the same way as we already fo for FL_DRAG events. Some
> > thought may be needed, because we want to use the last event, but it can
> > probably be made to work.
>
> This would make scrolling not work properly. IT is fragile as it is.

Huh? I speak only for the xforms frontend of course but...

we cache the pixmap dimensions. If they don't change, then you're just 
repainting, scrolling etc. Fine.

If they do change, however, then you're resizing the window. It's this bit 
that I suggest discarding DRAW events for.

> Furthermore, this wouldn't help resize at all - it is one paint event,
> that's not what's slow.

Rubbish, it's telling the LyX core that a resize has occurred that's 
expensive. I'm suggesting doing that only when you've stopped changing the 
dimensions of the window, not for every blessed intermediate step.

Angus

Reply via email to