Closed PatrickOgle closed 2 years ago
Should be fixed with https://github.com/glue-viz/glue-jupyter/pull/200
For a more permanent solution (after the 1.0 release obviously ;P) I think we should think of another solution. Here are a few I'm thinking of:
I think the crux of the problem is we are still rendering the ENTIRE image each time a slice is selected. Adding a delay (i.e. skipping some slices) definitely helps, but we're still limited by the size of each slice. Think of trying to scrub through a composite Roman (RST) cube! 100x the size of a Hubble slice, I can't even imagine. Therefore I'm thinking we should consider scalable behavior that is "slice independent."
Just some thoughts; thanks!
Just a quick note - glue never renders the whole image but instead accesses a fixed resolution buffer from the data. This means we can load a 1Tb image and it should behave fine. This works well provided the data is on a disk with good random access (typically SSDs) but does get a bit slower on spinning drives, since it relies on accessing each pixel individually from memory mapped arrays.
Having said this, throttling the slider is definitely a good idea!
The slider functionality has been updated and moved into a plugin since this issue was made. I just tried abusing it by moving the slider around as rapidly as possible, and it seems to me that it handles that gracefully and as expected. I'm closing this as solved.
When rapidly moving the cube slice slider in Cubeviz, the viewer displays lag behind and sometimes freeze.