The graph should auto-update as you add/remove links. The editor should remain responsive. Everything should go smoothly.
Actual result
The graph view blocks the editor while it’s updating. You can’t type anything before it’s finished rendering the updated graph.
Environment
Operating system: macOS Catalina
Obsidian version: 0.8.8
Additional information
If instantly rendering the updated graph isn’t doable (like I believe it isn’t), I think it would be preferable to let the graph lag behind the editor a few seconds.
Maybe even better (considering that some of us have better computers), allowing users to turn off auto-update in the graph view panel (in which case a “refresh” button would be needed).
Both of these seem like good solutions. I suspect that there might be some other tricks up the devs’ sleeves, though—maybe a way to separate threads for graph processing and the editor so that editing doesn’t get blocked.
Apart from a slightly smoother animation while dragging the graph, I couldn’t notice any improvement. There’s still a 5–10 second freeze.
I think there’s two different issues here. One is GPU/canvas and graph animation, the other is cache processing and rerendering the model the graph represents.
I’d bet the cache processing (or whatever’s happening in the backend) is the source of the blocking and is causing the CPU activity.
Can you please take a performance snapshot using the developer tools (performance tab) and send me the resulting file as a zip?
Click the circle button to start recording, do something that you would expect doesn’t lag, wait until it responds again, then click the circle to stop. Then use the arrow down button to save the snapshot and zip the file to make it smaller.
In the meantime, would recommend putting the local graph on the side. In most cases it might be more clear than the global graph, and it should render much faster.