Open shivasuri opened 3 years ago
@swederik @dannyrb do you have any thoughts on this :)
Debugging update:
Scrolling through images duplicates the cache as it's not using the images I manually cached. I'm using the stack scroll mousewheel tool. Why isn't it using the cache on the first scroll through?
ccing @chafey in case he has some insights :)
Hi, did you figure out a way to resolve this?
Prerequisites
Description
Is there a suggested MO for scrolling through images faster? I'm currently using the stack scroll tool, but scrolling is pretty glitchy/takes time to load. What is the suggested approach for caching series/past studies, or the approach which OHIF viewer follows? I've tried caching entire studies (i.e. every image in every series) but this does not work.
My current, brute force approach is to 1)
cornerstone.loadAndCacheImage
every instance of every series in a given study 2)cornerstone.loadImage
+cornerstone.displayImage
when switching b/w series.cornerstoneTools.addStackStateManager(element, ['stack']);
andcornerstoneTools.addToolState(element, 'stack', stack);
to make use of the stack extension.I would like there to be no lag scrolling through images. When I scroll through an entire series once it is fast (lagless) the second time around. I'm not sure if I'm populating the cache in a way it's not meant to be. Any ideas would be much appreciated.