[vtkusers] Volume Rendering Performance With Two Volumes

Andras Lasso lasso at queensu.ca
Tue Mar 20 10:04:31 EDT 2018


Slicer 4.8.1 still uses the OpenGL1 backend. We've noticed slowdown with OpenGL2 backend in Slicer 4.9, but solved it by tuning adjustment of sampling settings.

See the full discussion here:
https://discourse.slicer.org/t/volume-rendering-slow-in-latest-nightlies-for-macos/2231/21

As a side note, these are very large volumes for a modest GPU such as AMD R7 200.

Andras

-----Original Message-----
From: vtkusers <vtkusers-bounces at vtk.org> On Behalf Of ianl
Sent: Tuesday, March 20, 2018 8:00 AM
To: vtkusers at vtk.org
Subject: [vtkusers] Volume Rendering Performance With Two Volumes

Hello all,

I am investigating a performance issue we are seeing with VTK 8.1 and the new OpenGL2 back-end. We are loading two medium/large volumes (~900 images) made from CT slices at 512x512 x 2 Bytes (raw data size of ~450MB).

The GPU is an AMD R7 200 with 2GB of graphics RAM, so should easily be able to hold both volumes. I am running on Windows 10 with a Visual Studio 2017 build of VTK.

The issue we are seeing is that the performance of one of the volumes is quite degraded. This leads to the mapper reducing the quality noticeably on one volume but not the other. Generally it is the first volume to be shown that gets the best performance, but not always.

This issue does not seem to happen with the old OpenGL back-end, or is not anything like as noticeable. Eventually, the rendering will get so slow that Windows determines that the driver is not responding and resets it, leading to all sorts of havoc!

I have also been able to reproduce the quality degradation using 3DSlicer - version 4.8.1, downloaded yesterday, which as far as I am aware uses the new
OpenGL2 back-end. I load one of the volumes and display twice in GPU mode (Dual 3D from view menu). I also had to set the GPU memory size on the advanced section for the GPU rendering to work properly. The effect is most noticible with the CT-AAA preset. The driver reset seems to be mitigated by the dramatic degradation in quality that 3DSlicer seems to allow by default.

We could allow the quality to drop in the same way that 3DSlicer does, but as we were getting acceptable performance at reasonable quality levels using the old back end, it seems a shame to do this.

How do I proceed with this? Is there anything I can 'tweak' to change how the volumes are swapped on/off the GPU (if this is what is happening). Is the new volume rendering back-end just more memory heavy, so this is probabably something we will have to live with? Does anyone have any suggestions for diagnostics we can carry out to determine what is going on?

I have looked at GPU-Z and am seeing a higher Memory Controller Load when manipulating the 'bad' volume, so I am guessing that some sort of swapping of data is going on.




--
Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fvtk.1045678.n5.nabble.com%2FVTK-Users-f1224199.html&data=02%7C01%7Classo%40queensu.ca%7C4c4d20f833f04837478b08d58e5a20b7%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636571440103873466&sdata=8LQNS8ZnMM28wDa5YZ%2F6P5%2B5P%2BlV7%2F8eM3R%2FjcntZNE%3D&reserved=0
_______________________________________________
Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Classo%40queensu.ca%7C4c4d20f833f04837478b08d58e5a20b7%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636571440103873466&sdata=5JGEGDxj1jZi6SGrGQaIPBOd%2FRBcWdrr%2B%2BvkZNw0d7M%3D&reserved=0

Visit other Kitware open-source projects at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7C4c4d20f833f04837478b08d58e5a20b7%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636571440103882560&sdata=J%2BhXm35292b%2Bku9u8UXqrOp9xuKsfRm4P3CuIrwyd50%3D&reserved=0

Please keep messages on-topic and check the VTK FAQ at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Classo%40queensu.ca%7C4c4d20f833f04837478b08d58e5a20b7%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636571440103882560&sdata=gGD9xu7Pr%2FvZDjKpvvjPQj8ER3j%2FO6T73BTd7DoSzA8%3D&reserved=0

Search the list archives at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Classo%40queensu.ca%7C4c4d20f833f04837478b08d58e5a20b7%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636571440103882560&sdata=5MytgbE9VbMbw%2FVzG8VJPNkTfOm7%2BWN57kIpO3jVOaA%3D&reserved=0

Follow this link to subscribe/unsubscribe:
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvtk.org%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Classo%40queensu.ca%7C4c4d20f833f04837478b08d58e5a20b7%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636571440103882560&sdata=WjbVR8iAZJ71joPozd2WNaEtrzYM2rC%2BIpXj1m9jbxM%3D&reserved=0


More information about the vtkusers mailing list