mobie / mobie-viewer-fiji

BSD 2-Clause "Simplified" License
33 stars 13 forks source link

BVV rendering speed when zooming in and out #1188

Open tischi opened 1 week ago

tischi commented 1 week ago

Hi,

When zooming in and out using the mouse scroll wheel it does "hang" for me quite a bit, I feel more than using the normal BDV.

Is that maybe expected because other content needs to be pushed on the GPU?

ekatrukha commented 1 week ago

Hello @tischi,

yes, speed is supposed to drop down, since we are loading much more data now (all cubes instead of cubes around a plane).

One option to speed things up is to increase maximum GPU cache size here.

In this case (as with any other 3D viewer) it helps to use a dedicated GPU with a large memory. In reality, even if this parameter is larger than available GPU memory, modern cards will try to use regular memory as GPU cache memory, but this will affect performance.

Another possible problem could be a network connection, again, since we are loading much more data. I noticed that while debugging from home (with slow connection) vs at work (faster internet).

These are the things that come to my mind for now.

In addition, it could be that there is some trick with cache optimization, we need to talk to Nicolas about it. I finished the project that I promised him, so we are good to go :)