Re: [patch] LyX scrolling issue

2012-09-24 Thread Pavel Sanda
André Pönitz wrote: From the docs: We suggest only using repaint() if you need an immediate repaint, for example during animation. In almost all circumstances update() is better, as it permits Qt to optimize for speed and minimize flicker. The problem is that the speed

Re: [patch] LyX scrolling issue

2012-09-24 Thread Pavel Sanda
André Pönitz wrote: > >From the docs: > > We suggest only using repaint() if you need an immediate repaint, for > example during animation. In almost all circumstances update() is > better, as it permits Qt to optimize for speed and minimize flicker. The problem is that the speed

Re: [patch] LyX scrolling issue

2012-09-21 Thread André Pönitz
On Fri, Sep 21, 2012 at 12:51:43AM +0200, Pavel Sanda wrote: Scott Kostyshak wrote: void GuiWorkArea::update(int x, int y, int w, int h) { - viewport()-update(x, y, w, h); + viewport()-repaint(x, y, w, h); IIRC it was Andre's claim that we should use update instead of repaint.

Re: [patch] LyX scrolling issue

2012-09-21 Thread André Pönitz
On Fri, Sep 21, 2012 at 12:51:43AM +0200, Pavel Sanda wrote: > Scott Kostyshak wrote: > > void GuiWorkArea::update(int x, int y, int w, int h) > > { > > - viewport()->update(x, y, w, h); > > + viewport()->repaint(x, y, w, h); > > > IIRC it was Andre's claim that we should use update

[patch] LyX scrolling issue

2012-09-20 Thread Scott Kostyshak
Some have reported problems with LyX scrolling on Windows and Mac. Robert Schulze has git-bisected his way to the root cause of the particular scrolling problem he is experiencing: http://www.lyx.org/trac/ticket/8135 I am wondering if his problem is the same as others. The patch for current branch

Re: [patch] LyX scrolling issue

2012-09-20 Thread Pavel Sanda
Scott Kostyshak wrote: void GuiWorkArea::update(int x, int y, int w, int h) { - viewport()-update(x, y, w, h); + viewport()-repaint(x, y, w, h); IIRC it was Andre's claim that we should use update instead of repaint. Maybe he would know why this slow downs LyX so much. Pavel

[patch] LyX scrolling issue

2012-09-20 Thread Scott Kostyshak
Some have reported problems with LyX scrolling on Windows and Mac. Robert Schulze has git-bisected his way to the root cause of the particular scrolling problem he is experiencing: http://www.lyx.org/trac/ticket/8135 I am wondering if his problem is the same as others. The patch for current branch

Re: [patch] LyX scrolling issue

2012-09-20 Thread Pavel Sanda
Scott Kostyshak wrote: > void GuiWorkArea::update(int x, int y, int w, int h) > { > - viewport()->update(x, y, w, h); > + viewport()->repaint(x, y, w, h); IIRC it was Andre's claim that we should use update instead of repaint. Maybe he would know why this slow downs LyX so much. Pavel