Unload Eevee shaders option
When "Cycles" is set as the renderer, and go to material preview shading mode, the GPU RAM gets filled with Eevee shaders. If it's a complex scene, you may not be able to render the scene with cycles anymore, because of insuficient GPU ram. The only way to fix it is to turn blender off and on again, and not go to material preview shading mode.
There should be an option (default) to unload all Eevee shaders from GPU ram, if you start rendering with cycles. It would also force all 3D viewports to Solid view shading mode.
I noticed that When GPU is filled with Eevee shaders, solid view loses performance too. So there should just be a button to manually unload those shaders.
1 Comment
the shaders should instead just cache to the main ram and read back after rendering .