# VTK.js WebGL GPU memory

**URL:** https://discourse.vtk.org/t/vtk-js-webgl-gpu-memory/15020
**Category:** Web
**Tags:** vtkjs
**Created:** [December 14, 2024, 12:14am UTC](https://discourse.vtk.org/t/vtk-js-webgl-gpu-memory/15020 "2024-12-14T00:14:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mnk999](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mnk999/32/9619_2.png) [@mnk999](https://discourse.vtk.org/u/mnk999)
#### Post date: [December 14, 2024, 12:14am UTC](https://discourse.vtk.org/t/vtk-js-webgl-gpu-memory/15020/1 "2024-12-14T00:14:43Z")

</div>

Is there a way to force the renderer to use more memory if it is available to improve interactive performance and decrease degradation? I’m noticing this with a NVIDIA graphics card and its using 1 of 4 dedicated GPU memory and doesnt touch the shared memory.

Similarly, is there a way to force the renderer to use less memory? If I tell my browser to use UHD Integrated graphics, the interactive performance is perfect but it maxes out my shared GPU memory of 16GB and if i add another render window it crashes.

---

<div class="post-metadata">

### Author: ![daker](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/d/e495f1/32.png) [@daker](https://discourse.vtk.org/u/daker)
#### Post date: [December 15, 2024, 7:20pm UTC](https://discourse.vtk.org/t/vtk-js-webgl-gpu-memory/15020/2 "2024-12-15T19:20:05Z")

</div>

The webGL code is already requesting the `high-performance` device, i think this is more managed by the browser/os rather than the user code.

> <https://github.com/Kitware/vtk-js/blob/89758edd084dc59dd85908afc2e49ba9d1dc4230/Sources/Rendering/OpenGL/RenderWindow/index.js#L302-L306C7>
