Delay affecting typing experience of TeXmacs
Joy Yang <[email protected]>
| Newsgroups | gmane.editors.texmacs.devel |
|---|---|
| Message-ID | <SG2PR04MB3335DC695D8FC1D4FCCD28C4F98E0@SG2PR04MB3335.apcprd04.prod.outlook.com> |
Hi TeXmacs developers, I have been troubled by the laggy feedback of the default TeXmacs for quite some time. During typing, I can feel the lag between each key stroke and the corresponding font or formula appearing on screen. Mostly due to one line of code <https://github.com/texmacs/texmacs/blob/7f3aee4b878f26aa05ef9f7a053ac10a5f36b56f/src/Plugins/Qt/qt_gui.cpp#L842> under the if branch postpone_treatment. I try to understand the meaning of the variable postpone_treatment, which is determined by two static variables keyboard_event and keyboard_special. When I print out these two variables while typing letter one by one into TeXmacs, I can see that “1" and “0" printed out, which constantly triggers postpone_treatment to be true. And a simple modification of changing 100 -> 1000, I observe worse lag, whereas changing 100 -> 0, I get perfectly fine typing experience. One side note, I have looked it up in the mailing lists and I can find one relevant topics here <https://lists.gnu.org/archive/html/texmacs-dev/2018-10/msg00008.html>, but I don’t find any follow-up. Best regards, Joy _______________________________________________ Texmacs-dev mailing list [email protected] https://lists.gnu.org/mailman/listinfo/texmacs-dev