Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solw response while typing and typing caused trembling #2568

Open
xioajiumi opened this issue Sep 12, 2024 · 0 comments
Open

solw response while typing and typing caused trembling #2568

xioajiumi opened this issue Sep 12, 2024 · 0 comments

Comments

@xioajiumi
Copy link

xioajiumi commented Sep 12, 2024

**Version, Operating system**
win 11, CherryTree1.1.4, CPU: AMD Ryzen 5 5500U with Radeon Graphics (12 CPUs),~2.1GHz

Describe the bug
Typing in the middle of the node's content may cause cherryTree response rather slowly, like writting note in a pc from 2001.
You press the keyboard, but the char didn't show up immediately, just like there is a network traffice lag. Even you stopped typing, the Tip Box and char continue gorwing, but in a vary laggy way.
Inputting Chinese or English didn't make a difference, both get a slow response.
I upgraded my app from 0.9x to the latest version 1.1.4 but this doesn't help.
This bug never happens in a totally blank document, type and show, no lag at all. But, this bug do happen even in a samll node which has merely 1k words.
When this bug occurs, the cherryTree thread's cpu usage is about 14%, which is actually very high for just typing. The disk usage is zero(so this bug may has nothing to do with backup operation).
It's performance gets worse while typing Chinese than English.
It's performance gets worse while typing in the end of the paragraph than in a new line.

Another Feedback
I have noticed that the rest content of the document will get a upward offset (about 1px ) when you start typing in a new line and this could be reprodued easily. Sometimes, the show up of candidate window of Microsoft Simplified Chinese IME (a Chinese typing software wildly used in win11) could also bring the micro offset. The small offset bug (showed as follow) makes the content "trembling" while typing, this would disattract people from typing and may cause unnecessay performance cost.
Hope this info may be helpful.

To Reproduce
It's hard to reproduce immediately, but this bug often happens while typing in the middle of the document instead of the end of the file. The document don't necessaily be very large, 1~2k words is enough to meet the slow-typing bug.

Screenshots
the gif show how typing caused trembling。
the video showed the unstable and slow performace of cherry, use MS Word as a comparison.
offset
1726155282682

bandicam.2024-09-12.23-47-29-154.mp4
@xioajiumi xioajiumi changed the title solw responee while typing and typing caused trembling solw response while typing and typing caused trembling Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant