What happens if your run TeXmacs in a new profile:
mv -i $HOME/.TeXmacs $HOME/.TeXmacs.bak
texmacs
What happens if your run TeXmacs in a new profile:
mv -i $HOME/.TeXmacs $HOME/.TeXmacs.bak
texmacs
Doesnāt help.
I made a recording using my phone camera to show what Iām talking about: https://streamable.com/ixclas
Listen to the audio to notice the delay between a key press and the moment the symbol appears on the screen.
It would be good to have some quantifiable measurements. If you start TeXmacs from the terminal, then turn on Tools -> Debugging Tools
and Debug->bench
, youāll be able to see how long typesetting takes.
This is when I am typing regular text:
TeXmacs] std-bench, Task 'typeset' took 0 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 0 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 0 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 0 ms
TeXmacs] std-bench, Task 'typeset' took 0 ms
TeXmacs] std-bench, Task 'typeset' took 0 ms
TeXmacs] std-bench, Task 'typeset' took 0 ms
TeXmacs] std-bench, Task 'typeset' took 0 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 0 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 0 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 0 ms
TeXmacs] std-bench, Task 'typeset' took 0 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 0 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 0 ms
This is when I am inside a maxima session:
TeXmacs] std-bench, Task 'typeset' took 2 ms
TeXmacs] std-bench, Task 'typeset' took 2 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 3 ms
TeXmacs] std-bench, Task 'typeset' took 2 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 2 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 2 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 2 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 3 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 1 ms
TeXmacs] std-bench, Task 'typeset' took 2 ms
TeXmacs] std-bench, Task 'typeset' took 2 ms
I have the impression that 2/3 ms per keystroke are all right. In this case, the sluggishness depends on something that comes after the measurement has been taken. Letās hear someone else.
Could have a try with maxima-sbcl
?
On Mac with Maxima/SBCL it works fine. It is quite strange that there is lag in typing, since TeXmacs should not communicate with Maxima until the user press enter. (maybe there is some autocompletion code running?) Do you have some costumization in your .TeXmacs ? They might interfere with the plugin. Maybe would be a good idea to remove (or rename) your ~/.TeXmacs directory and try again.
Someone suggested (see above comments) to start TexMacs with a clean ~/.TexMacs
. I did and it didnāt change anything.
I just noticed that the video I uploaded has been automatically deleted. Hereās another link to it.
Is it safe to assume that Iām the only one having this issue and no one knows how to fix it?
It seems so. Maybe you should remind us of your specific setup (OS, ā¦, version of TeXmacs, where you found it, etcā¦) and maybe you would like to try to run TeXmacs in a virtual machine with a different OS. The only thing I can imagine is that your distribution graphic subsystem is interacting poorly with the Qt library and make the TeXmacs event loop to have unnecessary waiting pauses. But I do not use Linux usually and Iām not aware of any specific combination of OS/compositor/Qt version which could cause a problem. Have you tried to compile TeXmacs on your machine?
Another reason could be that TeXmacs does not find some system fonts but try to run anyway commands like kpathsea
which are very slow. You might be able to see this if you monitor the running processes (e.g. with top
) in your system while you experience the slowness.
Iām on Manjaro Linux and Iāve tried running texmacs from different places:
All plugins Iāve tried (python, giac, shell, etc) run smoothly, except Maxima.
Did you try the package maxima-sbcl
?
Yes. The problem did not go away.