excalidraw / excalidraw-vscode

Excalidraw for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=pomdtr.excalidraw-editor
MIT License
457 stars 55 forks source link

Performance issues when using several images #110

Open LeNouveau opened 10 months ago

LeNouveau commented 10 months ago

Hi,

My use case : When I'm investigating an issue, I create a document my_incident.excalidraw.svg containing screenshots and comments. It's saved localy, viewable by others and I'm free to annotate as I feel.

The only downside is that when there are too many images (~15), I have lags. The screen freezes for a while, I can't drag objects or I can't navigate on my file.

When I open the same file on https://excalidraw.io, I have no issue, it's smooth.

Can I do something about it ? Can I allocate more ressources ?

Thx for reading ! :D

pomdtr commented 10 months ago

I notice these slowdowns too.

The extension serialized the drawing to the disk each time you make a change, so it's quite unoptimized, especially when you have image in your scene.

There is no simple way to solve this yet, but I'll think about it.

LeNouveau commented 10 months ago

Ok.

Thank you for the explanation. :)