On Thursday 12 December 2002 6:13 pm, Bo Peng wrote:
> On Thu, Dec 12, 2002 at 06:01:22PM +0000, Angus Leeming wrote:
> > The idea is that these previews are exactly the same size as the
> > surrounding text. So, change your zoom, close the document and open it
> > again. You could also try changing the preview_scale_factor (default
> > value of 0.9).
>
> Thanks. The bitmaps are correct after close/open. Anyway, it would
> definitely be better if the bitmaps are regenerated after a preference
> zoom change. I would suggest it as a minor feature enhancement.

That won't happen any time in the near future. Certainly not before 1.3 is 
released and probably not after either. Unless you do the work of course ;-)

> Two problems exists though:
>
> 1. After I load a document, instant preview seems to be running
>    underground so I can type in words etc. After a while, when the
>    bitmaps are generated, the screen freeze for more than 5 seconds when
>    being refreshed. This is for a one page document with around 100 math
>    symbols. I do not know what will happen to a document with hundreds
>    of formula.

Umm. Each latex snippet is stored in a separate file. We load them on demand. 
Ie, only the bitmap for a formula that is visible is loaded. Presumably 
that's no more than 10 files to a page. That shouldn't cause too much of a 
blockage.

So, I conclude that a document with hundreds of formulae will behave just as 
well/badly as your current document. Each time you go to a new part of the 
document, the appropriate bitmaps will be loaded and you'll get some small 
blockage.

It certainly shouldn't be for 5 secs though. Perhaps you could run a profiler 
on the code to see where the block is occurring? (I have no such problems 
here.)

> 2. When I tried to see what will happen if I change zoom values, I
>    encountered unpredictable crashes. What I did was:
>      open a document, after the instant preview is displayed, preference
>      -> font -> zoom. Change it to 500, apply, change it to 550, apply.
>      After on average 2-5 changes, lyx will crash.

Backtrace please.
Angus

Reply via email to