scenerygraphics / sciview

sciview is a tool for visualization and interaction with ND image and mesh data
BSD 2-Clause "Simplified" License
68 stars 17 forks source link

Selecting a volume in the inspector is very slow, triggers Running extension SwingVolumeProperties #606

Open smlpt opened 2 months ago

smlpt commented 2 months ago

When selecting any object that that is not a volume, it gets selected almost immediately. When clicking on a volume object, Running extension SwingVolumeProperties is logged and it takes 4-5 seconds before the volume settings are shown; while waiting, the UI is frozen.

Maybe this is caused by the histogram being recalculated internally, even if it is not shown?

moreApi commented 2 months ago

At least looking at this https://github.com/scenerygraphics/sciview/blob/e9ace2b470832b0bcaad381f3a69f04a5d80156e/src/main/kotlin/sc/iview/commands/edit/SwingVolumeProperties.kt it seems the histogram generation should not be triggerd by accident.