Canvas is laggy with larger number of nodes

I have a Canvas of ~140 nodes and similar number of edges.

When I drag or zoom it gets laggy, particularly once zoomed in so that text is rendered.

The lag is more pronounced when the window is full-size on my larger monitor (3440 x 1440). It’s still present when full size on the laptop’s monitor (1728 x 1117)

:white_check_mark: Reproduced in the Sandbox vault.

FWIW I found this similar post.

Steps to reproduce

  1. Start sandbox vault
  2. Open it in finder
  3. Add test.canvas
  4. Open test.canvas in Obsidian
  5. Zoom out so that the text is not rendered. Now zoom in once.
  6. Observe the lag when :
    • zooming in and out
    • Dragging the canvas around

Did you follow the troubleshooting guide? [Y]

Expected result

Smooth experience

Actual result

Laggy experience

Environment

System info:

  Obsidian Version 1.4.16 (Installer 1.4.13)
  macOS Sonoma Version 14.1.1
  Model Name:	MacBook Pro
  Model Identifier:	MacBookPro18,2
  Model Number:	Z14X0007XB/A
  Chip:	Apple M1 Max
  Total Number of Cores:	10 (8 performance and 2 efficiency)
  Memory:	64 GB
SYSTEM INFO:
	Obsidian version: v1.4.16
	Installer version: v1.4.13
	Operating system: Darwin Kernel Version 23.1.0: Mon Oct  9 21:27:24 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6000 23.1.0
	Login status: not logged in
	Insider build toggle: off
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

2 Likes

It happens on Windows, too, so I bet this is either a limitation of Electron, the engine behind Obsidian (if Obsidian were to be written in a native programming language, things would probably run butter-smooth), or the graphics framework that Obsidian uses might be far from perfect.