# Better GPU will benefit or not VR volume rendering

**URL:** <https://discourse.slicer.org/t/better-gpu-will-benefit-or-not-vr-volume-rendering/21008>\
**Category:** Support\
**Created:** [December 10, 2021, 4:31pm UTC](https://discourse.slicer.org/t/better-gpu-will-benefit-or-not-vr-volume-rendering/21008 "2021-12-10T16:31:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![davide445](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/davide445/32/13460_2.png) [@davide445](https://discourse.slicer.org/u/davide445)\
**Post date:** [December 10, 2021, 4:31pm UTC](https://discourse.slicer.org/t/better-gpu-will-benefit-or-not-vr-volume-rendering/21008/1 "2021-12-10T16:31:57Z")

</div>

Was testing today VR view using a Vive Cosmos headset, a GTX 1070 GPU, Ryzen 2600X CPU and 64GB RAM.  
Works but it’s not really fluid, a bit of nauseating shutters.  
Tried to change various setting but didn’t find better performance maintaining the same visual quality.  
Since the GPU was just 50% busy wanted to ask if with a more recent and powerful (was thing a RX 6800XT) will really improve things.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 10, 2021, 4:41pm UTC](https://discourse.slicer.org/t/better-gpu-will-benefit-or-not-vr-volume-rendering/21008/2 "2021-12-10T16:41:55Z")

</div>

You can tune volume rendering quality settings in SlicerVirtualReality module settings to ensure that volume rendering updates are fast enough (using any GPU) while the head is moving, of course at the cost temporarily lowering the image quality .

A significantly better GPU is expected to provide significantly better rendering speed for volume rendering, so if the dynamic quality adjustment does not give you satisfactory results then it may make sense to upgrade. In general I would recommend NVidia GeForce GPUs for volume rendering (NVidia for software compatibility and driver quality; and GeForce series for cost effectiveness and software compatibility).

---

<div class="post-metadata">

**Author:** ![davide445](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/davide445/32/13460_2.png) [@davide445](https://discourse.slicer.org/u/davide445)\
**Post date:** [December 10, 2021, 6:05pm UTC](https://discourse.slicer.org/t/better-gpu-will-benefit-or-not-vr-volume-rendering/21008/3 "2021-12-10T18:05:15Z")

</div>

The fact my 1070 was not saturated was wondering me, or a faster GPU will be anyway get better results even if not saturated.  
Also I’m not using very big models, having total VRAM\>model size will allow better compatibility with AMD GPUs.  
I tend to prefer AMD hw for next rig due better price/performance (6900 XT at €1700 vs 3090 at €3700 here).

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 10, 2021, 6:53pm UTC](https://discourse.slicer.org/t/better-gpu-will-benefit-or-not-vr-volume-rendering/21008/4 "2021-12-10T18:53:25Z")

</div>

> [@davide445](#):
>
> Also I’m not using very big models,

Do you have performance issues with visualizing models or volumes?

If you visualize volumes, what is the volume size in voxels?

> [@davide445](#):
>
> I tend to prefer AMD hw for next rig due better price/performance (6900 XT at €1700 vs 3090 at €3700 here).

With an AMD GPU there is a higher chance that you will run into problems, but it could be a good option if you are willing to take the risk and/or you are ready to do some low-level OpenGL debugging and contribute fixes to VTK.

---

<div class="post-metadata">

**Author:** ![davide445](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/davide445/32/13460_2.png) [@davide445](https://discourse.slicer.org/u/davide445)\
**Post date:** [December 10, 2021, 8:00pm UTC](https://discourse.slicer.org/t/better-gpu-will-benefit-or-not-vr-volume-rendering/21008/5 "2021-12-10T20:00:59Z")

</div>

> [@lassoan](#):
>
> If you visualize volumes, what is the volume size in voxels?

I visualize volumes, testing on ircad 12, 512x512x260

Not able to debug OpenGL, reading the issues was having the impression AMD has problems in case of big volumes using a lot of VRAM or using Adaptive quality.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 10, 2021, 8:10pm UTC](https://discourse.slicer.org/t/better-gpu-will-benefit-or-not-vr-volume-rendering/21008/6 "2021-12-10T20:10:39Z")

</div>

It is not a small volume, so it is not surprising that a several-year-old GPU struggles to render it at full resolution in stereo at 60fps.

Most “large volume” rendering issues start at texture sizes above 512, so probably you would not run into them even if you use an AMD GPU.

---

<div class="post-metadata">

**Author:** ![davide445](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/davide445/32/13460_2.png) [@davide445](https://discourse.slicer.org/u/davide445)\
**Post date:** [December 10, 2021, 8:29pm UTC](https://discourse.slicer.org/t/better-gpu-will-benefit-or-not-vr-volume-rendering/21008/7 "2021-12-10T20:29:30Z")

</div>

Not an expert but 16 bit grayscale is meaning 68MB image… Not that much to me. Wrong calculations probably.

---

<div class="post-metadata">

**Author:** ![Hao\_Li](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hao_li/32/3420_2.png) [@Hao\_Li](https://discourse.slicer.org/u/Hao_Li)\
**Post date:** [December 10, 2021, 8:32pm UTC](https://discourse.slicer.org/t/better-gpu-will-benefit-or-not-vr-volume-rendering/21008/8 "2021-12-10T20:32:49Z")

</div>

Buy 3090. I bought 6900XT and regret very hard =).  
I ran into data sets I can visualize with volume rendering on 1070, but not 6900XT 😵 and some other data sets vice versa. 3090 opened them all.

---

<div class="post-metadata">

**Author:** ![davide445](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/davide445/32/13460_2.png) [@davide445](https://discourse.slicer.org/u/davide445)\
**Post date:** [December 10, 2021, 8:57pm UTC](https://discourse.slicer.org/t/better-gpu-will-benefit-or-not-vr-volume-rendering/21008/9 "2021-12-10T20:57:48Z")

</div>

But there is some rule? Getting problems only with big files, or using Adaptive resolution, or simply not track able to any specific feature so is not predictable.

---

<div class="post-metadata">

**Author:** ![Hao\_Li](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hao_li/32/3420_2.png) [@Hao\_Li](https://discourse.slicer.org/u/Hao_Li)\
**Post date:** [December 10, 2021, 9:33pm UTC](https://discourse.slicer.org/t/better-gpu-will-benefit-or-not-vr-volume-rendering/21008/10 "2021-12-10T21:33:07Z")

</div>

I find it unpredictable.  
I have a file with size around 4Gb I cannot volume render at all with 6900XT, but works fine with 1070 or CPU. I also have a file at 11Gb, which I can volume render with 6900XT but it shows wrong stiched. The 11Gb file can not be volume rendered using 1070.  
Volume rendering 11Gb file, the speed is slow when using Adaptive resolution with 3090.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [December 10, 2021, 11:57pm UTC](https://discourse.slicer.org/t/better-gpu-will-benefit-or-not-vr-volume-rendering/21008/11 "2021-12-10T23:57:10Z")

</div>

> [@Hao\_Li](#):
>
> Volume rendering 11Gb file, the speed is slow when using Adaptive resolution with 3090.

If you have 3090, you really shouldn’t need to use Adaptive. Normal should give you better performance. Another thing to check is to see if you are really set to use the discrete GPU to for 3D rendering (In case your CPU has an internal GPU as well). In windows 10 this is handled by the Graphics Settings hardware-accelerated GPU scheduling. Make sure SlicerrealApp.exe is chosen to use the 3090.

---

<div class="post-metadata">

**Author:** ![davide445](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/davide445/32/13460_2.png) [@davide445](https://discourse.slicer.org/u/davide445)\
**Post date:** [December 11, 2021, 6:27am UTC](https://discourse.slicer.org/t/better-gpu-will-benefit-or-not-vr-volume-rendering/21008/12 "2021-12-11T06:27:27Z")

</div>

> [@Hao\_Li](#):
>
> I have a file with size around 4Gb I cannot volume render at all with 6900XT

You mean 4GB on the file system, or in VRAM (how you check it?). As example I’m testing using also the [Ircadb 1.12](https://www.ircad.fr/softwares/3Dircadb/3Dircadb1/3Dircadb1.12.zip) image if you have time to have a test on it.

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [December 11, 2021, 8:11am UTC](https://discourse.slicer.org/t/better-gpu-will-benefit-or-not-vr-volume-rendering/21008/13 "2021-12-11T08:11:20Z")

</div>

> [@Hao\_Li](#):
>
> I have a file with size around 4Gb I cannot volume render at all with 6900XT

Do you mean volume rendering without virtual reality?  
Is it possible to post an anonymized copy of this volume ? I’m eager to test it with my 6700XT without virtual reality.

---

<div class="post-metadata">

**Author:** ![Hao\_Li](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hao_li/32/3420_2.png) [@Hao\_Li](https://discourse.slicer.org/u/Hao_Li)\
**Post date:** [December 11, 2021, 8:21am UTC](https://discourse.slicer.org/t/better-gpu-will-benefit-or-not-vr-volume-rendering/21008/14 "2021-12-11T08:21:01Z")

</div>

I’ll check on Monday on the Ircadb file. The file size is 4Gb, I don’t know VRAM.

---

<div class="post-metadata">

**Author:** ![Hao\_Li](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hao_li/32/3420_2.png) [@Hao\_Li](https://discourse.slicer.org/u/Hao_Li)\
**Post date:** [December 11, 2021, 8:34am UTC](https://discourse.slicer.org/t/better-gpu-will-benefit-or-not-vr-volume-rendering/21008/15 "2021-12-11T08:34:23Z")

</div>

Hi! Yes, I’m volume rendering without virtual reality. 6900XT is not very predictable in my hands, I’m not handy at all though. The specific data belongs to other people, I’ll try to find similar data which belongs to me and send to you.

---

<div class="post-metadata">

**Author:** ![davide445](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/davide445/32/13460_2.png) [@davide445](https://discourse.slicer.org/u/davide445)\
**Post date:** [December 11, 2021, 9:48am UTC](https://discourse.slicer.org/t/better-gpu-will-benefit-or-not-vr-volume-rendering/21008/16 "2021-12-11T09:48:58Z")

</div>

> [@Hao\_Li](#):
>
> I’ll check on Monday on the Ircadb file. The file size is 4Gb, I don’t know VRAM.

Thanks. Btw you are on Windows or Linux.

---

<div class="post-metadata">

**Author:** ![Hao\_Li](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hao_li/32/3420_2.png) [@Hao\_Li](https://discourse.slicer.org/u/Hao_Li)\
**Post date:** [December 11, 2021, 9:52am UTC](https://discourse.slicer.org/t/better-gpu-will-benefit-or-not-vr-volume-rendering/21008/17 "2021-12-11T09:52:33Z")

</div>

I’m on windows 10. Maybe windows operative system comes into play as well…

---

<div class="post-metadata">

**Author:** ![davide445](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/davide445/32/13460_2.png) [@davide445](https://discourse.slicer.org/u/davide445)\
**Post date:** [December 12, 2021, 2:01am UTC](https://discourse.slicer.org/t/better-gpu-will-benefit-or-not-vr-volume-rendering/21008/18 "2021-12-12T02:01:20Z")

</div>

Discovered this opened issue on VTK

> **[Volume rendering issue with volumes bigger 4GB using AMD GPU (#17969) · Issues...](https://gitlab.kitware.com/vtk/vtk/-/issues/17969)**
>
> I just found a strange behavoir when was using a Radeon VII to render a bigger volume (volume bigger 4GB). It seems the volume is cutted into segments...

No assignee after one year, just a pity 20% of the market is ignored (considering i.e. all the Apple have AMD GPU).  
Also seems AMD subpar OpenGL support (and essentially switching their effort on Vulkan) play a role, not good for VTK due a migration to Vulkan seems not to be happening fast

> **[Vulkan Development](https://discourse.vtk.org/t/vulkan-development/3307/23)**
>
> As an FYI, we just got a user report that a Mac running Big Sur (Mac OS 11.4) on the Apple M1 core does not have OpenGL installed. What is the priority for getting VTK working on new Macs?

Was reading a post where AMD states his Windows OpenGL drivers are “workstation” drivers, so will be curios to know if there is someone able to test on AMD workstation GPU to check if the problems are still there.  
Anyway interersted to know if we can track down the limitations on AMD GPUs to lower than 4GB files.

---

<div class="post-metadata">

**Author:** ![Hao\_Li](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hao_li/32/3420_2.png) [@Hao\_Li](https://discourse.slicer.org/u/Hao_Li)\
**Post date:** [December 13, 2021, 8:51am UTC](https://discourse.slicer.org/t/better-gpu-will-benefit-or-not-vr-volume-rendering/21008/19 "2021-12-13T08:51:20Z")

</div>

> [@Hao\_Li](#):
>
> Ircadb file

Hi! I have tried the Ircadb files. Patient CT and VTKs. I used 6900XT, it runs very smoothly. I used normal, adaptive and maximum methods, all three ran smoothly. I tried same files in 3090, there is no difference.

---

<div class="post-metadata">

**Author:** ![davide445](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/davide445/32/13460_2.png) [@davide445](https://discourse.slicer.org/u/davide445)\
**Post date:** [December 13, 2021, 3:44pm UTC](https://discourse.slicer.org/t/better-gpu-will-benefit-or-not-vr-volume-rendering/21008/20 "2021-12-13T15:44:37Z")

</div>

Will be possible for you to test on this file

> **[eyeglobe-overview.rar](https://wetransfer.com/downloads/c818812292a259d64e948800322b982720211213153930/95ef7c)**
>
> 1 file sent via WeTransfer, the simplest way to send your files around the world

This time a 1004x1024x1018 volume, 2GB size.

[Next page](https://discourse.slicer.org/t/better-gpu-will-benefit-or-not-vr-volume-rendering/21008.md?page=2)
