[vtkusers] Volume Rendering Performance With Two Volumes
Sankhesh Jhaveri
sankhesh.jhaveri at kitware.com
Wed Mar 21 07:26:46 EDT 2018
Hi,
If you are rendering the two volumes at the same time and if they fit in
GPU memory, they should be cached on the GPU without having to stream.
IIRC, the OpenGL2 volume mapper uses a little more GPU memory over the old
mapper but it should not be a significant difference.
Thanks,
Sankhesh
On Tue, Mar 20, 2018 at 11:56 AM Andras Lasso <lasso at queensu.ca> wrote:
> Automatic sample distance adjustment is based on measuring rendering
> times. If you render multiple volumes then maybe the measurement is not
> reliable anymore (just guessing). You could try manually setting sample
> distances for all volumes and see if you get more consistent behavior.
>
> Andras
>
> -----Original Message-----
> From: vtkusers <vtkusers-bounces at vtk.org> On Behalf Of ianl
> Sent: Tuesday, March 20, 2018 11:41 AM
> To: vtkusers at vtk.org
> Subject: Re: [vtkusers] Volume Rendering Performance With Two Volumes
>
> Andras Lasso wrote
> > 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://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdisco
> > urse.slicer.org%2Ft%2Fvolume-rendering-slow-in-latest-nightlies-for-ma
> > cos%2F2231%2F21&data=02%7C01%7Classo%40queensu.ca%7Ca4d06e6ec31d45e97f
> > 2e08d58e790db4%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C6365715729
> > 25774613&sdata=s5J76LJnOInDFeBR1APBgyb9Xe5Q8m8yzsZHdbJDbHU%3D&reserved
> > =0
>
> Interesting that 3DSlicer 4.8.1 is still using the old back end and I am
> seeing a similar issue. This somewhat disproves my suspicion that there
> might be an issue with multiple volumes introduced with OpenGL2. However,
> the effect is certainly worse in our code with the new back end.
>
> I have tried your fix to set LockSampleDistanceToInputSpacing. This does
> not seem to make much difference for us as we have
> InteractiveAdjustSampleDistances set on, which presumably overrides it. As
> it looks like 3DSlicer is also adjusting ImageSampleDistance from
> observation, this may be a difference. I will look into perhaps varying
> that too in interactive modes.
>
> Interestingly, I have just noticed that if I have just two VTK windows
> with volumes in, performance is much better and consistent with and without
> LockSampleDistanceToInputSpacing. If I have other VTK windows, MPR views
> for example, performance drops off on one of the volumes.
>
>
> Andras Lasso wrote
> > As a side note, these are very large volumes for a modest GPU such as
> > AMD
> > R7 200.
>
> Granted, the card is a few years old, but does have 2GB of graphics memory
> and renders volumes of this size and larger very nicely with the old OpenGL
> back end.
>
>
>
>
> --
> 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%7Ca4d06e6ec31d45e97f2e08d58e790db4%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636571572925774613&sdata=MaOY1zTuXMMAwRrUiG8UFnbZMlKlfcGdbSmmY2vb64s%3D&reserved=0
> _______________________________________________
> Powered by
> https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Classo%40queensu.ca%7Ca4d06e6ec31d45e97f2e08d58e790db4%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636571572925774613&sdata=zRdGnwhQ8HnlZ%2BBGOHRA3pbNBc7cnnAH6ft%2FPITr2B8%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%7Ca4d06e6ec31d45e97f2e08d58e790db4%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636571572925774613&sdata=ElsRWmQqZnJSdcjAdN6DI7LKVOdndAWkV77Sv1Nzkwo%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%7Ca4d06e6ec31d45e97f2e08d58e790db4%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636571572925774613&sdata=yZQrBLgqIPqa10Gjhd2JbJLl%2Fi05vjev0PodYiwtnIE%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%7Ca4d06e6ec31d45e97f2e08d58e790db4%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636571572925774613&sdata=eFJwHeGxaobtJLJ%2FxQ7eUbGWu9IDhoDuIM5umpg5DDo%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%7Ca4d06e6ec31d45e97f2e08d58e790db4%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636571572925774613&sdata=0Wfviq%2BeVV6vZeOlFiivuD9rX6uGwtXxeQ6I%2FpUPCa0%3D&reserved=0
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtkusers
>
--
Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware
<http://www.kitware.com/> | (518) 881-4417
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180321/5a0fb1d9/attachment.html>
More information about the vtkusers
mailing list