I compared the typing latency/lag of CudaText, Notepad++ and Geany on two computers (one old/slow and the other modern/fast) with Windows operating systems and I noticed that CudaText is very slow compared to the other two editors.
This is the main issue that is preventing me from switching to CudaText from Notepad++ and Geany.
Is there a configuration/setting that can be adjusted to make CudaText more responsive to typing ?
This happens even when autocomplete is disabled. Notepad++ (Windows only) and Geany (cross-platform) are both very responsive even with auto-complete enabled.
Thank you for your feedback.
Lag when typing
-
- Posts: 2245
- Joined: 25.08.2021 18:15
Re: Lag when typing
no, no such setting exist.
Cud's reaction is slower, I know.
Cud's reaction is slower, I know.
-
- Posts: 2245
- Joined: 25.08.2021 18:15
Re: Lag when typing
I use PC made NN years ago. the typing in Pascal lexer is rather fast, on 8000-lines file. this speed can be slow on very big files, or if you use some 'slow' plugin (like auto-completion plugin / LSP).
so remove all auto-completion plugins (and any interactive plugins like Markdown Editing) and try again.
so remove all auto-completion plugins (and any interactive plugins like Markdown Editing) and try again.
Re: Lag when typing
The old computer has Windows XP installed and when starting Cudatext the attached error shows up. It translates to "could not find entry point of DeleteProcThreadAttributeList in KERNEL32.dll".
If the error is acknowledged by clicking OK, Cudatext starts normally but the following warning shows up in the bottom panel:
NOTE: No Python 3 engine found. Python plugins don't work now. To fix this:
place near cudatext.exe: python3x.dll, python3x.zip, python3xdlls\*.pyd, MS VS Runtime.
Can these help explain the typing lag in the Windows XP computer ?
Thank you again for your feedback.
If the error is acknowledged by clicking OK, Cudatext starts normally but the following warning shows up in the bottom panel:
NOTE: No Python 3 engine found. Python plugins don't work now. To fix this:
place near cudatext.exe: python3x.dll, python3x.zip, python3xdlls\*.pyd, MS VS Runtime.
Can these help explain the typing lag in the Windows XP computer ?
Thank you again for your feedback.
- Attachments
-
- kernel.png (7.65 KiB) Viewed 5305 times
-
- Posts: 2245
- Joined: 25.08.2021 18:15
Re: Lag when typing
>Can these help explain the typing lag in the Windows XP computer ?
no, it cannot, this error-msg is different thing. I will search for this API in FreePascal , why it is used. but lag is a different thing.
no, it cannot, this error-msg is different thing. I will search for this API in FreePascal , why it is used. but lag is a different thing.
-
- Posts: 2245
- Joined: 25.08.2021 18:15
Re: Lag when typing
this API function is used by Python 3.8 DLL.
you must use Python 3.4 anyway.
https://wiki.freepascal.org/CudaText#Py ... Windows_XP
so, you have Python disabled, but you see a lag. so no plugins are involved. maybe you mean the very small lag, which exists of course.
you must use Python 3.4 anyway.
https://wiki.freepascal.org/CudaText#Py ... Windows_XP
so, you have Python disabled, but you see a lag. so no plugins are involved. maybe you mean the very small lag, which exists of course.
Re: Lag when typing
I investigated further the lag issue in the Windows XP computer.
All editors CudaText, Notepad++ and Geany see a somewhat high CPU usage when I press any key for several seconds. But while CudaText stops adding new characters after the first two or three, Notepad++ and Geany remain responsive adding new characters without any lag.
Auto-completion is enabled on all editors.
I find that optimizing these lag issues on a very old computer is always a very good exercise in optimization since it is in the old computer that the results of the optimization are more visible.
Is there any chance that the typing lag issue in CudaText will see an improvement in the future ?
Thank you again for your collaboration and prompt feedback.
All editors CudaText, Notepad++ and Geany see a somewhat high CPU usage when I press any key for several seconds. But while CudaText stops adding new characters after the first two or three, Notepad++ and Geany remain responsive adding new characters without any lag.
Auto-completion is enabled on all editors.
I find that optimizing these lag issues on a very old computer is always a very good exercise in optimization since it is in the old computer that the results of the optimization are more visible.
Is there any chance that the typing lag issue in CudaText will see an improvement in the future ?
Thank you again for your collaboration and prompt feedback.
Re: Lag when typing
w3mbox2 wrote: ↑17.11.2023 13:12 All editors CudaText, Notepad++ and Geany see a somewhat high CPU usage when I press any key for several seconds. But while CudaText stops adding new characters after the first two or three, Notepad++ and Geany remain responsive adding new characters without any lag.
How does this delay manifest itself?
I didn't notice any delays when entering text in CudaText in Ubuntu
-
- Posts: 2245
- Joined: 25.08.2021 18:15
Re: Lag when typing
maybe, I don't know yet.>any chance that the typing lag issue in CudaText will see an improvement in the future ?
what can be slow for you is the lexer (you mentioned Java lexer).
you can make the 'lite lexer' for your syntax
https://wiki.freepascal.org/CudaText#Lite_lexers
to replace (partially) the normal lexer. this will speedup the work.
-
- Posts: 2245
- Joined: 25.08.2021 18:15
Re: Lag when typing
to detect that lexer is the 'reason for slowliness', turn off the lexer (statusbar click). compare the speed when none lexer is active: statusbar shows '(none)' .