SoftFever / OrcaSlicer

G-code generator for 3D printers (Bambu, Prusa, Voron, VzBot, RatRig, Creality, etc.)
https://discord.gg/P4VE9UY9gJ
GNU Affero General Public License v3.0
7.19k stars 846 forks source link

Undo on large projects *slow* #6916

Open rkarlsba opened 1 month ago

rkarlsba commented 1 month ago

Is there an existing issue for this problem?

OrcaSlicer Version

2.2.0-beta

Operating System (OS)

macOS

OS Version

macOS Sonoma 14.7

Additional system information

Apple M2 Pro 16GB RAM

Printer

Bambu X1C Combo

How to reproduce

Make a project. Copy/paste a ton of objects. Save the project (just in case) and edit a single object somehow and then undo.

Actual results

With my current project (in which I don't really know the total number of objects because I haven't manually counted and because of #2715, a simple undo after rotating a single object, takes close to 30 seconds.

Expected results

Undo really should be way faster than this. It's a modern laptop, after all.

Project file & Debug log uploads

daabloe-bambu.zip

Checklist of files to include

Anything else?

No logfile added, since orcaslicer doesn't crash

rkarlsba commented 1 month ago

Also, if working on large projects (like the one attached) and adding parts to a plate, a shift+A to arrange the parts locally on that plate, can take half a minute without problems. With a smaller project, it's done in milliseconds. I can only guess that this is related.