Re: outline pane issues and huge note slowness

2021-02-05 Thread Richard Kimberly Heck
On 2/5/21 6:30 PM, V K wrote:
>> Do you also see this with other insets? E.g., footnotes? Does it matter if 
>> the top of the inset is still on screen? Or if the bottom is off? Does the 
>> inset need to be bigger than the screen for you to see this?
>>
>> JMard will know better than I, but I think there may be something weird that 
>> happens once an inset spans the whole screen.
>>
>> Riki
>>
>
> Inset must be really huge to see big sluggishness. If it is bigger than 
> screan, let's say, is like 7 screens long), I hear spike of CPU and see some 
> sluggishness, if it is like three screens, I hear spike of CPU but see no 
> sluggish. 
>
> I created Lyx note, greyedout, comment, marginnote and footnote – the same 
> behaviour.

OK, that helps: It's a general problem with this kind of inset.


> Yes, inset mus be bigger, but it doesn't matter is the top or bottom of the 
> inset on screen. Text scrolls evenly until top or bottom of inset appears on 
> screen, then CPU spikes and text jumps – stops – jumps. After inset 
> disappears, text scrolls evenly. To be more precise, text scroll evenly and 
> then stops when I even don't see inset – as I understand, it stops when inset 
> should appear on screen if scroll would continue at the same speed. So I 
> don't see inset and some normal text before or after inset. The bigger is 
> speed of scroll, the bigger portion of normal text before or after inset I 
> don't see too. And the bigger jump after such freeze is.

One more question: Does it occur when the *only* thing on the screen is
the inset?

As I said, I suspect that something weird happens with the metrics
calculation here. Either that, or there is some reason we paint the
screen multiple times, and maybe that is slower on Wayland.

It is worse on Wayland?

Riki


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: outline pane issues and huge note slowness

2021-02-05 Thread V K







On Saturday, February 6, 2021, 12:43:11 AM GMT+2, Richard Kimberly Heck 
 wrote: 






On 2/5/21 5:34 PM, V K wrote:


>  
> 
> 
> 
> 
> 
> On Saturday, February 6, 2021, 12:21:59 AM GMT+2, Richard Kimberly Heck 
>  wrote: 
> 
> 
> 
> 
> 
> On 2/5/21 4:52 PM, V K wrote:
> 
> 
>>  
>> 
>> 
>> 
>> 
>> On Friday, February 5, 2021, 11:43:02 PM GMT+2, Richard Kimberly Heck 
>>  wrote:
>> 
>> 
>> 
>> 
>> 
>> On 2/5/21 3:10 PM, Jean-Marc Lasgouttes wrote:
>> 
>> 
>>>  Le 05/02/2021 à 20:07, V K a écrit :
>>> 
  Regarding huge note. I created a new file, pasted some random
 generated text in English and Russian, placed them in note an yes, it
 is not as bad. But when I pasted my text in Lithuanian to note, it's
 almost unusable. Same situation even after converting all text to
 plaintext (so there is no notes or links to missing footnotes, only
 text). After buffer-anonymize performance is much better, like with
 notes in other languages. So, problem is with language, I think –
 Lithuanian has letters ąčęėįįšųųūž. So I copied public lithuanian
 text to the note. Strangely situation is better (but worse than with
 English or Russian notes).
 I attached file with public text and I can send file with my text
 privately if you wish.
 
>>> What shall I do to experience bad performance? What is your operating
>>> system?
>>> 
>> Of course we've had issues like this with the outliner open. We fixed a
>> problem like that for branches. Maybe it's the same problem with notes?
>> 
>> 
>> 
>> 
>> I've just created branch, placed my text and behaviour is same as with note 
>> – sluggishness. Maybe Wayland is to be blamed. But Linux is going in that 
>> direction.
>> 
> 
> Does the problem depend upon having the outliner open?
> 
> Riki
> 
> 
> 
> 
> 
> No, I don't see any differences, CPU spikes and sluggishness w/o outline too.
> 
> 

OK, thanks. So it's at least not the other issue I had in mind.

Do you also see this with other insets? E.g., footnotes? Does it matter if the 
top of the inset is still on screen? Or if the bottom is off? Does the inset 
need to be bigger than the screen for you to see this?

JMard will know better than I, but I think there may be something weird that 
happens once an inset spans the whole screen.

Riki



Inset must be really huge to see big sluggishness. If it is bigger than screan, 
let's say, is like 7 screens long), I hear spike of CPU and see some 
sluggishness, if it is like three screens, I hear spike of CPU but see no 
sluggish. 

I created Lyx note, greyedout, comment, marginnote and footnote – the same 
behaviour.

Yes, inset mus be bigger, but it doesn't matter is the top or bottom of the 
inset on screen. Text scrolls evenly until top or bottom of inset appears on 
screen, then CPU spikes and text jumps – stops – jumps. After inset disappears, 
text scrolls evenly. To be more precise, text scroll evenly and then stops when 
I even don't see inset – as I understand, it stops when inset should appear on 
screen if scroll would continue at the same speed. So I don't see inset and 
some normal text before or after inset. The bigger is speed of scroll, the 
bigger portion of normal text before or after inset I don't see too. And the 
bigger jump after such freeze is.
As a total noob I see problem with "painting" of inset.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: outline pane issues and huge note slowness

2021-02-05 Thread V K







On Saturday, February 6, 2021, 12:21:59 AM GMT+2, Richard Kimberly Heck 
 wrote: 





On 2/5/21 4:52 PM, V K wrote:

>
>
>
>
>
>
> On Friday, February 5, 2021, 11:43:02 PM GMT+2, Richard Kimberly Heck 
>  wrote:
>
>
>
>
>
> On 2/5/21 3:10 PM, Jean-Marc Lasgouttes wrote:
>
>> Le 05/02/2021 à 20:07, V K a écrit :
>>> Regarding huge note. I created a new file, pasted some random
>>> generated text in English and Russian, placed them in note an yes, it
>>> is not as bad. But when I pasted my text in Lithuanian to note, it's
>>> almost unusable. Same situation even after converting all text to
>>> plaintext (so there is no notes or links to missing footnotes, only
>>> text). After buffer-anonymize performance is much better, like with
>>> notes in other languages. So, problem is with language, I think –
>>> Lithuanian has letters ąčęėįįšųųūž. So I copied public lithuanian
>>> text to the note. Strangely situation is better (but worse than with
>>> English or Russian notes).
>>> I attached file with public text and I can send file with my text
>>> privately if you wish.
>> What shall I do to experience bad performance? What is your operating
>> system?
>
> Of course we've had issues like this with the outliner open. We fixed a
> problem like that for branches. Maybe it's the same problem with notes?
>
>
>
>
> I've just created branch, placed my text and behaviour is same as with note – 
> sluggishness. Maybe Wayland is to be blamed. But Linux is going in that 
> direction.


Does the problem depend upon having the outliner open?

Riki





No, I don't see any differences, CPU spikes and sluggishness w/o outline too.

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: outline pane issues and huge note slowness

2021-02-05 Thread V K







On Friday, February 5, 2021, 11:43:02 PM GMT+2, Richard Kimberly Heck 
 wrote: 





On 2/5/21 3:10 PM, Jean-Marc Lasgouttes wrote:

> Le 05/02/2021 à 20:07, V K a écrit :
>> Regarding huge note. I created a new file, pasted some random 
>> generated text in English and Russian, placed them in note an yes, it 
>> is not as bad. But when I pasted my text in Lithuanian to note, it's 
>> almost unusable. Same situation even after converting all text to 
>> plaintext (so there is no notes or links to missing footnotes, only 
>> text). After buffer-anonymize performance is much better, like with 
>> notes in other languages. So, problem is with language, I think – 
>> Lithuanian has letters ąčęėįįšųųūž. So I copied public lithuanian 
>> text to the note. Strangely situation is better (but worse than with 
>> English or Russian notes).
>> I attached file with public text and I can send file with my text 
>> privately if you wish.
>
> What shall I do to experience bad performance? What is your operating 
> system?


Of course we've had issues like this with the outliner open. We fixed a 
problem like that for branches. Maybe it's the same problem with notes?




I've just created branch, placed my text and behaviour is same as with note – 
sluggishness. Maybe Wayland is to be blamed. But Linux is going in that 
direction.



-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: outline pane issues and huge note slowness

2021-02-05 Thread V K







On Friday, February 5, 2021, 10:10:14 PM GMT+2, Jean-Marc Lasgouttes 
 wrote: 





Le 05/02/2021 à 20:07, V K a écrit :
> Regarding huge note. I created a new file, pasted some random generated text 
> in English and Russian, placed them in note an yes, it is not as bad. But 
> when I pasted my text in Lithuanian to note, it's almost unusable. Same 
> situation even after converting all text to plaintext (so there is no notes 
> or links to missing footnotes, only text). After buffer-anonymize performance 
> is much better, like with notes in other languages. So, problem is with 
> language, I think – Lithuanian has letters ąčęėįįšųųūž. So I copied public 
> lithuanian text to the note. Strangely situation is better (but worse than 
> with English or Russian notes).
> I attached file with public text and I can send file with my text privately 
> if you wish.

What shall I do to experience bad performance? What is your operating 
system?




Manjaro linux, sway, wayland laptop Lenovo X1 yoga (1st generation) (CPU: Dual 
Core Intel Core i7-6600U (-MT MCP-) speed/min/max: 699/400/3400 MHz Kernel: 
5.10.7-3-MANJARO x86_64 Up: 7h 04m Mem: 6805.1/15417.2 MiB (44.1%) Storage: 
476.94 GiB (90.0% used) SSD NVMe) Open note inset and scroll down (I'm 
scrolling with touchpad), note content must be wisible in Lyx work area. The 
faster scroll, the higher CPU usage, but document moves very slowly and with 
quite a big delay and with big jumps. wayland can be the culprit. I opened lyx 
in xwayland mode and I can scroll through the note only slowly – after 
scrolling fast document are thrown back to initial position. CPU usage about 
70%. In wayland – 99% if scrolling is intensive, up and down.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: outline pane issues and huge note slowness

2021-02-05 Thread Richard Kimberly Heck

On 2/5/21 5:34 PM, V K wrote:







On Saturday, February 6, 2021, 12:21:59 AM GMT+2, Richard Kimberly Heck 
 wrote:





On 2/5/21 4:52 PM, V K wrote:







On Friday, February 5, 2021, 11:43:02 PM GMT+2, Richard Kimberly Heck 
 wrote:





On 2/5/21 3:10 PM, Jean-Marc Lasgouttes wrote:


Le 05/02/2021 à 20:07, V K a écrit :

Regarding huge note. I created a new file, pasted some random
generated text in English and Russian, placed them in note an yes, it
is not as bad. But when I pasted my text in Lithuanian to note, it's
almost unusable. Same situation even after converting all text to
plaintext (so there is no notes or links to missing footnotes, only
text). After buffer-anonymize performance is much better, like with
notes in other languages. So, problem is with language, I think –
Lithuanian has letters ąčęėįįšųųūž. So I copied public lithuanian
text to the note. Strangely situation is better (but worse than with
English or Russian notes).
I attached file with public text and I can send file with my text
privately if you wish.

What shall I do to experience bad performance? What is your operating
system?

Of course we've had issues like this with the outliner open. We fixed a
problem like that for branches. Maybe it's the same problem with notes?




I've just created branch, placed my text and behaviour is same as with note – 
sluggishness. Maybe Wayland is to be blamed. But Linux is going in that 
direction.


Does the problem depend upon having the outliner open?

Riki





No, I don't see any differences, CPU spikes and sluggishness w/o outline too.


OK, thanks. So it's at least not the other issue I had in mind.

Do you also see this with other insets? E.g., footnotes? Does it matter 
if the top of the inset is still on screen? Or if the bottom is off? 
Does the inset need to be bigger than the screen for you to see this?


JMard will know better than I, but I think there may be something weird 
that happens once an inset spans the whole screen.


Riki


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: outline pane issues and huge note slowness

2021-02-05 Thread Richard Kimberly Heck

On 2/5/21 4:52 PM, V K wrote:







On Friday, February 5, 2021, 11:43:02 PM GMT+2, Richard Kimberly Heck 
 wrote:





On 2/5/21 3:10 PM, Jean-Marc Lasgouttes wrote:


Le 05/02/2021 à 20:07, V K a écrit :

Regarding huge note. I created a new file, pasted some random
generated text in English and Russian, placed them in note an yes, it
is not as bad. But when I pasted my text in Lithuanian to note, it's
almost unusable. Same situation even after converting all text to
plaintext (so there is no notes or links to missing footnotes, only
text). After buffer-anonymize performance is much better, like with
notes in other languages. So, problem is with language, I think –
Lithuanian has letters ąčęėįįšųųūž. So I copied public lithuanian
text to the note. Strangely situation is better (but worse than with
English or Russian notes).
I attached file with public text and I can send file with my text
privately if you wish.

What shall I do to experience bad performance? What is your operating
system?


Of course we've had issues like this with the outliner open. We fixed a
problem like that for branches. Maybe it's the same problem with notes?




I've just created branch, placed my text and behaviour is same as with note – 
sluggishness. Maybe Wayland is to be blamed. But Linux is going in that 
direction.


Does the problem depend upon having the outliner open?

Riki


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: outline pane issues and huge note slowness

2021-02-05 Thread Richard Kimberly Heck

On 2/5/21 3:10 PM, Jean-Marc Lasgouttes wrote:

Le 05/02/2021 à 20:07, V K a écrit :
Regarding huge note. I created a new file, pasted some random 
generated text in English and Russian, placed them in note an yes, it 
is not as bad. But when I pasted my text in Lithuanian to note, it's 
almost unusable. Same situation even after converting all text to 
plaintext (so there is no notes or links to missing footnotes, only 
text). After buffer-anonymize performance is much better, like with 
notes in other languages. So, problem is with language, I think – 
Lithuanian has letters ąčęėįįšųųūž. So I copied public lithuanian 
text to the note. Strangely situation is better (but worse than with 
English or Russian notes).
I attached file with public text and I can send file with my text 
privately if you wish.


What shall I do to experience bad performance? What is your operating 
system?


Of course we've had issues like this with the outliner open. We fixed a 
problem like that for branches. Maybe it's the same problem with notes?


Riki


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: outline pane issues and huge note slowness

2021-02-05 Thread Jean-Marc Lasgouttes

Le 05/02/2021 à 20:07, V K a écrit :

Regarding huge note. I created a new file, pasted some random generated text in 
English and Russian, placed them in note an yes, it is not as bad. But when I 
pasted my text in Lithuanian to note, it's almost unusable. Same situation even 
after converting all text to plaintext (so there is no notes or links to 
missing footnotes, only text). After buffer-anonymize performance is much 
better, like with notes in other languages. So, problem is with language, I 
think – Lithuanian has letters ąčęėįįšųųūž. So I copied public lithuanian text 
to the note. Strangely situation is better (but worse than with English or 
Russian notes).
I attached file with public text and I can send file with my text privately if 
you wish.


What shall I do to experience bad performance? What is your operating 
system?


JMarc
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Document tab blank

2021-02-05 Thread Rich Shepard

On Fri, 29 Jan 2021, Richard Kimberly Heck wrote:


Is there anything different about the filenames? Spaces, eg?


Riki,

Still not an issue. And, ...

I just started a beamer class document and the tabs on the graphics insert
dialog box have the same behavior: The tab with focus has a blank tab title,
the others display what they do.

Carpe weekend,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: outline pane issues and huge note slowness

2021-02-05 Thread Jean-Marc Lasgouttes

Le 04/02/2021 à 01:15, V K a écrit :

Hello.

Lyx is approaching 2.4 and I want to draw attention of devs to the outline pane 
functionality and problem of the huge notes. Maybe some of these issues can be 
fixed relatively easy and quickly till the new release.


These issues probably deserve their own tickets on trac (either grouped 
or separated). Concerning the performace issue, it is a known problem 
which is generally not as bad, but it will be difficult to fix before 
2.4.0 IMO. I would appreciate to have a file to play with (you may want 
to use buffer-anonymize on it).


JMarc



1. "Keep" tikbox in the outline pane is working inconsistently. Let's say, I opened all 
navigation tree elements by sliding bottom slider of the outline pane to the right and ticked 
"keep". It's keeping tree while I am navigating through the document, but after going to 
another document and coming back I see collapsed tree (ticbox is still ticked). This situation is 
particularly discomfortable when working with master-child documents.

2. Navigation tree in the outline pane collapses after ctrl+z (undoing) while 
"keep" is still ticked.

3. Situation with notes and footnotes selection in outline. I am using Lyx notes, greyedout and 
comments severely while preparing texts. And it is very common situation when I want to go through 
all or some notes to correct text, delete notes. So I open notes list in the outline, search note I 
need, go to text to correct it and... all notes disapper in the outline and I see navigation tree 
there. So I must open notes list anew, select next note and so on. Ticking "keep" tikbox 
do nothing. Maybe such behaviour is intentional (to search only one note and automatically go back 
to navigation tree), but maybe "tickbox" can be used to keep notes list?

4. This isn't related to outline pane. My notes can be huge (to hide parts of 
the text temporary) and navigating in such huge notes is painfully slow, CPU 
usage rises dramatically (99% of one of the cores of the CPU). Such slowness 
presents only when huge note is opened and is visible in Lyx work area. 
Slowness disappears after collapsing note or after scrolling till it disappears 
from work area. The same problem is with big branches. Such slow was note with 
75 000 characters (incl. spaces), more smaller notes and a lot of citations in 
it.

Such situation is with master (bit dated – Built from git commit hash 9e1db659) 
and with stable too, as I remember.

Thank you for your hard work – it is much more pleasant to work with Lyx office 
than with traditional offices.

Valdemaras



--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users