zsviczian / obsidian-excalidraw-plugin

A plugin to edit and view Excalidraw drawings in Obsidian
4.13k stars 228 forks source link

Drawing in Excalidraw Is Very Laggy Since Obsidian 1.0.0 #865

Open Celeblith opened 1 year ago

Celeblith commented 1 year ago

Describe the bug Since Obsidian 1.0.0, the Excalidraw plugin has been very laggy for me. There's a delay of maybe half a second when drawing with either a mouse or a pen, where before it was more or less instantaneous.

To Reproduce Steps to reproduce the behavior:

  1. Open any Excalidraw drawing
  2. Select the draw function
  3. Draw anything
  4. See error

Expected behavior I expected to create drawings with minimal lag.

Screenshots Can't get a screenshot of it.

Environment (please complete the following information):

Additional context I'm sure it's not my vault size as it's only 25 MB. It might have something to do with Windows 11 as I also updated that recently.

zsviczian commented 1 year ago

I've been suspicious of similar issue, but haven't yet been able to conclusively show it is slower and find the root cause. I don't know if this is Obsidian 1.0.0, or other plugins, or Excalidraw. I was suspecting that this has to do with background indexing... but as you say, your vault is small, so that is unlikely to be the cause.

Can you run "Show debug info" from the command palette and share with me the result?

Celeblith commented 1 year ago

Hello! Thanks for replying. Here's my debug info:

SYSTEM INFO: Obsidian version: v1.0.3 Installer version: v0.15.8 Operating system: Windows 10 Pro 10.0.22621 Login status: not logged in Insider build toggle: off Live preview: off Legacy editor: off Base theme: dark Community theme: Minimal Snippets enabled: 12 Restricted mode: off Plugins installed: 31 Plugins enabled: 31 1: Advanced Tables v0.17.3 2: Calendar v1.5.10 3: Dataview v0.5.47 4: Hotkeys++ v0.2.7 5: Natural Language Dates v0.6.1 6: Note Refactor v1.7.1 7: Periodic Notes v0.0.17 8: Review v1.6.4 9: Style Settings v0.4.12 10: Tag Wrangler v0.5.4 11: Editor Syntax Highlight v0.1.3 12: Paste URL into selection v1.7.0 13: Buttons v0.4.19 14: Better Word Count v0.8.1 15: Minimal Theme Settings v6.1.0 16: Graph Analysis v0.15.4 17: Smart Random Note v0.2.1 18: Advanced Slides v1.18.1 19: Zoom v1.1.1 20: Hotkey Helper v0.3.15 21: Hover Editor v0.11.6 22: Sortable v0.2.6 23: Text Format v1.8.3 24: Workspaces Plus v0.3.2 25: Admonition v9.0.5 26: Spaced Repetition v1.8.0 27: Vault Statistics v0.1.3 28: Banners v1.3.3 29: List Callouts v1.0.10 30: Templater v1.15.3 31: Excalidraw v1.7.27

RECOMMENDATIONS: Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets. Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

Edit: I just checked and the problem persists in the Sandbox Vault with no other plugins. Hopefully that helps

Dishit79 commented 1 year ago

I am having the same issue

rmchale commented 1 year ago

Are you using insider build?

Dishit79 commented 1 year ago

I am not.

huntedman commented 1 year ago

I also noticed recently that excalidraw is laggy on my devices (ipad/mac) (obsidian 1.0.0+)

nifanle7 commented 1 year ago

I also noticed recently that excalidraw is laggy on my devices (ipad/mac) (obsidian 1.0.0+) So do I. It’s a little laggy on my iPad with the only one plugin in the Obsidian when drawing.

zsviczian commented 1 year ago

Is it laggy from the outset or after drawing many lines with the pencil?

nifanle7 commented 1 year ago

I try again and it seems to be smooth now. Maybe it was my delusion before. Thank you for replying so quick.

Awesomeness211i commented 1 year ago

Is it laggy from the outset or after drawing many lines with the pencil?

It is after drawing bit from the pencil for me specifically even this much drawing is causing noticable lag spikes Excalidraw and I have a file with even more writing that consitently has frame drops when doing anything like moving the viewport or drawing causing lines to not go where I want sometimes or be too straight when not wanted.

zsviczian commented 1 year ago

I understand. This is not something I can fix, for the most part this comes with the Excalidraw package and how Excalidraw has been designed from the ground up.

What I was thinking is to create an alternative frontend with only freedraw support, reusing the demo code from perfect freehand, but save the result in an Excalidraw format so you can continue to work on the file in excalidraw, and add additional illustrations there.

pau-gc commented 1 year ago

I also have an issue with lag while using excalidraw. I figured that it clashes with the "style settings" plugin, I'm not really sure why. When I turn style settings off, excalidraw works normally.

SullivanNagler commented 10 months ago

That was my problem and it was resolved with the style settings turn off. Thanks !

SullivanNagler commented 10 months ago

In style below files and link (apparence en français). Theme (thèmes) . and select default.

Le 29 novembre 2023 03:55:12 GMT+01:00, Nawaf @.***> a écrit :

Where is the style settings" plugin located?

-- Reply to this email directly or view it on GitHub: https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/865#issuecomment-1831132519 You are receiving this because you commented.

Message ID: @.***>

Barmaid1076 commented 2 months ago

no issue on windows or even e-ink device, but extremely laggy on ios