"Compare Volumes" module - display order

Hi there,

I have been using this module a lot in the last months (with different Slicer versions, including the latest updates) since I often need to compare multiple series at the same times and I find it extremely helpful! So thanks again!

Unfortunately, I noticed that in those datasets where I used this module at least once, things start to go extremely slow thereafter: even scrolling a single series in the Red view alone shows extreme “lagging”. The problem persists even if save and close the scene, restart the pc (which is an incredibly powerful workstation with 128 GB DDR RAM and 12th Gen Intel Core i9-12900F, 2400 Mhz, 16 Cores, 24 Logical Processors; Windows 11) and reload the saved scene.

On the contrary, this problem does not occur when I “manually” set the same amount of panels, such as a “4 by 3” or even “7 by 3” scenes, without using the “compare volumes” module.

My impression is that once the “compare volumes” module is utilized to display multiple views, it somehow keeps occupying a huge amount of resources, even if the additional view-panels are not shown anymore. It gets better again if I manually delete all the additional Slice-views created from the “Data”->”All Nodes” module.

Do you think that it represents a problem inside the “compare module” script? Or, conversely, is there a way to auto-release the resources without requiring to manually delete the slices-view, one-by-one, in the “all nodes” windows, when the comparison is not needed anymore?

Thank you very much in advance.

Michele