haydenull / logseq-plugin-excalidraw

MIT License
71 stars 0 forks source link

[Enhance demand] Optimized the draw sampling speed #33

Open jackyliu16 opened 1 month ago

jackyliu16 commented 1 month ago

Search first

What Happened?

Recently, when using an external touch screen pen for simple Chinese writing instructions, I found that the reaction interval of the excalidraw draw operation is particularly long, basically there is no way to complete Chinese writing well, and I tested the web version in two tests and found that there was a similar situation but the plot was slightly slight (at the same time, it was tested by NEBO, and the effect was good, indicating that it should not be a hardware problem)

Is it possible to reduce the stuttering latency of drawing operations with the internal sampling rate of the LogSeq ExcaliDraw plugin?

== Original in Chinese

最近在使用外置触屏笔进行简单中文书写说明的时候,发现 excalidraw draw 操作的反应间隔时间特别长,基本上没有办法很好的完成中文书写,在两次测试中测试了网页版本发现也存在类似的情况但情节略轻微(同时通过nebo进行了测试,效果良好,说明应该不是硬件的问题) 是否可以通过 logseq excalidraw 插件的内部采样率来降低绘制操作的卡顿延迟?

Reproduce the Bug

  1. use /draw and select excaliaw: ...
  2. draw

Screenshots

No response

Environment Information

Plugins Version: 1.5.1 Logseq Version: 0.10.9 OS Win 11 22635.3720 Hardware: Matebook E 2019

Additional Context

我知道这可能看上去不算正常的需求,抱歉我不太了解这个

Are you willing to submit a PR? If you know how to fix the bug.

haydenull commented 1 month ago

使用官方的 excalidraw.com 会有这个问题吗,我翻了下文档没看到采样率相关的说明

jackyliu16 commented 1 month ago

使用官方的也会有类似的问题,不过表现稍微好那么一点的样子? 差不多就是 logseq 插件要放慢三倍到四倍速度写可以比较好的呈现字体,然后再官方那边一倍到两倍就够了(不过我也不好说,因为我测试了两次,一次效果还不错,另外一次延迟就有点大了)