Page MenuHome

Repeated hiding and unhiding of objects causes more memory usage
Closed, ArchivedPublic

Description

System Information
Operating system: Windows
Graphics card: GTX 960

Blender Version
Broken: 2.80 9149e894210

Short description of error
Repeated hiding and unhiding of objects causes Blender's total memory usage to rise. Higher numbers of objects (presumably also polycounts) have a larger impact.

Exact steps for others to reproduce the error
Repeatedly hide and unhide any number of objects in the viewport - I used the eye icon in the Outliner.

Event Timeline

This adds undo steps which use memory, unless the memory usage increased significantly since 2.7x it's not a bug.

Fair enough, makes sense.
Is it normal though for undo steps to take up more memory when the complexity of said objects increases? Even if the datablocks are linked from another library?
A cube, for example, adds kilobytes. A forest of linked trees adds tens of megabytes each time.

Sebastian Parborg (zeddb) lowered the priority of this task from 90 to 30.Dec 19 2018, 12:34 PM

IIRC, the undo system save snapshots of the scene data (not diffs). So the more complex objects will add more to memory, yes.

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Archived.Dec 19 2018, 11:55 PM

Right, there are snapshots but only changed chunks of memory are stored.

Did a quick comparison and it seems this isn't working especially differently in 2.8x compared to 2.7x. Closing.

@Sam Van Hulle (sam_vh) - if you can show an example where this is significantly worse in 2.8x compared to 2.79 release. Open a new report with sample file.