Canvas performance bugs

Steps to reproduce

Create a canvas, add a bunch of images and zoom out. The more, the more noticeable effect will be. Copies of a single image work as well.

Did you follow the troubleshooting guide? [Y/N]

Y

Expected result

Good performance when trying to navigate the canvas.

Actual result

Severe lags when trying to navigate the canvas.

Environment

SYSTEM INFO:
	Obsidian version: v1.7.4
	Installer version: v1.4.13
	Operating system: Windows 10 Pro 10.0.22631 (what? I'm on Windows 11 🤷‍♂️)
	Login status: not logged in
	Language: en
	Insider build toggle: off
	Live preview: on
	Base theme: dark
	Community theme: none
	Snippets enabled: 2
	Restricted mode: off
	Plugins installed: 8
	Plugins enabled: 8
		1: Telegram Sync v3.1.0
		2: Emoji Shortcodes v2.2.0
		3: Excalidraw v2.0.18
		4: Janitor v1.0.7
		5: Paste URL into selection v1.7.0
		6: Simple CanvaSearch v0.1.0
		7: Tray v0.3.5
		8: Canvas Link Optimizer v1.3.0

Additional information

Actually I’m a plugin developer and was looking to improve performance on canvases with a lot of images. This is how I’ve stumbled across a bug in Obsidian code that was ruining the performance. Upon deeper investigation I’ve discovered another issue. So, there’s actually 2 issues.

I’ve made a plugin that resolves both of them GitHub - Qbject/obsidian-canvas-performance-patch: Fix issues with canvas performance.. I’m not going to submit it to the plugin library, it’s more of a demo to make it easier for developers to fix the issues. The readme file contains more technical information. I hope it helps.

1 Like

Thanks, we’ll look into it.

2 Likes

will be fixed 1.7.5

2 Likes

Hi, thanks for the new version!

Though it looks like only the css backface-visibility issue is resolved. But the file nodes still unmount and mount back on every frame while panning.

Should I post a new thread, or this one can stay around?

1 Like

let me check

1 Like

Not sure if this would be helpful, but anyway, this is the canvas I’m using for testing (just mass-replace the attachment path)
imgtest.zip (7.3 KB)

1 Like

ok, You are correct. The second problem will be fixed in obsidian v1.8 1.7.6.

2 Likes

this issue has really been affecting the usability of Canvas on my end. i have many internal image embeds on mine. thank you guys!

1 Like

Everything’s fixed in 1.7.6, I can confirm. Thanks!

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.