informatics-isi-edu / openseadragon-viewer

2D viewer with openseadragon
Apache License 2.0
5 stars 2 forks source link

Better loader and investigate performance issues #81

Closed RFSH closed 1 month ago

RFSH commented 3 years ago

If you try to open/close the channel panel while image tiles are loading, it will not respond right away and depending on how long the tiles take to load it will be laggy.

You can experience this more often on larger images with larger number of possible zoom. For example,

I'm not entirely sure why we're experiencing this and need to investigate more. But I'm assuming it could be because of osd loading/hiding/caching tiles while interacting with the page.

Also as part of this we should make sure the loader is more visible. I added the loader as a debugging tool and didn't want it to be distracting. But now it's way too hidden. One suggesting is showing a banner with loading... text on top of the image.

RFSH commented 3 years ago

Changed the spinner in https://github.com/informatics-isi-edu/openseadragon-viewer/commit/ca99368bd84e340acd779ffe04cb99e1a5fbc02e commit. I still need to look more into the performance issue.

RFSH commented 3 years ago

While working on the channel controls changes, I spend some time looking at the performance issue. Disabling the image color manipulation that we're doing, significantly improves the performance of the app. And that makes sense given that we're going over pixels of the displayed tiles one by one and modify their values.

We might be able to improve this by improving that implementation. There might be some built-in feature in OSD that allows us to do this more efficiently.

RFSH commented 1 month ago

Moved to wishlist.