logseq / logseq

A privacy-first, open-source platform for knowledge management and collaboration. Download link: http://github.com/logseq/logseq/releases. roadmap: http://trello.com/b/8txSM12G/roadmap
https://logseq.com
GNU Affero General Public License v3.0
33.23k stars 1.94k forks source link

Whiteboard Drawing Tablet Lag/Glitches #10343

Open sbelanger3 opened 1 year ago

sbelanger3 commented 1 year ago

Search first

What Happened?

When using the whiteboard portion, I like to use it for notes in class and after even just a few notes on the screen the drawing stops being consistent with letters like a or e coming out as a line with no circle as if they averaged my input. I would much rather a simple input delay than this as I now have to slow down my writing in order for it to actually write what I am putting down.

Reproduce the Bug

  1. Open a whiteboard with a drawing tablet plugged in.
  2. Write out sentences until you have about 2 paragraphs there, may take more if the system behaves faster in general.
  3. Your writing will become obviously slowed and begin "sticking" to itself like it cant process all the inputs fast enough so it just uses what it has.
  4. This is especially noticable with letters such as "a" or "e" and sometimes "o" or "p".

Expected Behavior

I expect to be able to write as fast as I would like on my drawing tablet without it changing my inputs. If it takes a second for the writing to show up on the screen that honestly wouldn't be that bothersome but when my inputs are not buffered properly, the result is unbearable.

Screenshots

No response

Desktop or Mobile Platform Information

App Version: 0.9.19 Git Revision: bd36efe Platform: Mozilla/5.0 (Windows NT 6.2 Win64 x64) AppleWebKit/537.36 (KHTML like Gecko) Logseq/0.9.19 Chrome/112.0.5615.204 Electron/24.6.3 Safari/537.36 Language: en-US Plugins: logseq-tenset-theme (v1.0.1)

Additional Context

I am using a Legion Laptop with a Nvidia 3050 and an intel i7.

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

cannibalox commented 1 year ago

+1 this issue has been flagged previously, I still believe it's related to the real-time saving mechanism : in TLDraw, there is no similar issue, all pen strokes remain smooth and fluid even for bigger documents. in Logseq Whiteboard, the lag increases with the size of the document/number of elements to save.

Also note that when we make a single continuous stroke, the stroke will not log at all, the problem arises when we lift the pen -- that'S probably when the auto save kicks in and creates the lag). Previous attempts to alleviate the isse made things a bit better but the core issue persists to this day.

related: https://discord.com/channels/725182569297215569/1001746361303187466/1106333747189645312 https://discord.com/channels/725182569297215569/1001746361303187466/1108525912976281660

in case it's related to real-time save, I'd happily trade it for a smoother pen experience. Let us disable the auto-save and enable manual save via a shrotcut.

rexhent commented 9 months ago

+1 this issue has been flagged previously, I still believe it's related to the real-time saving mechanism : in TLDraw, there is no similar issue, all pen strokes remain smooth and fluid even for bigger documents. in Logseq Whiteboard, the lag increases with the size of the document/number of elements to save.

Also note that when we make a single continuous stroke, the stroke will not log at all, the problem arises when we lift the pen -- that'S probably when the auto save kicks in and creates the lag). Previous attempts to alleviate the isse made things a bit better but the core issue persists to this day.

related: https://discord.com/channels/725182569297215569/1001746361303187466/1106333747189645312 https://discord.com/channels/725182569297215569/1001746361303187466/1108525912976281660

in case it's related to real-time save, I'd happily trade it for a smoother pen experience. Let us disable the auto-save and enable manual save via a shrotcut.

+1 To this issue as well. Makes it hard to use the whiteboards once they have alot of stuff on them. I did test it on some different spec PC's and it didn't really seem to make a difference. I don't think it's an underlying issue in tldraw, and as your saying probably related to the auto saving. I'll try use my limited JS and react skills to try and find some solutions.

Maybe a decent solution would be auto saving at a time interval instead of by stroke? Every 5-10 seconds maybe?

theorin commented 2 months ago

+1 to the issue as well. The slow down escalates pretty quickly on android.