# GPU not being release after closing material editor

**URL:** <https://discourse.mcneel.com/t/gpu-not-being-release-after-closing-material-editor/47324>\
**Category:** Rendering WIP\
**Tags:** cycles, gpurender\
**Created:** [September 9, 2017, 1:21am UTC](https://discourse.mcneel.com/t/gpu-not-being-release-after-closing-material-editor/47324 "2017-09-09T01:21:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Toshiaki\_Takano](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/toshiaki_takano/32/483707_2.png) [@Toshiaki\_Takano](https://discourse.mcneel.com/u/Toshiaki_Takano)\
**Post date:** [September 9, 2017, 1:21am UTC](https://discourse.mcneel.com/t/gpu-not-being-release-after-closing-material-editor/47324/1 "2017-09-09T01:21:56Z")

</div>

In cycles, after closing the material editor, the GPU seems still remains to be  
used. (attached image is GPU usage after closing material window)

1. Open materials
2. Import material from library.
3. Close material editor window.  
-\>GPU still being used.  
(this seems to happen if the auto-update is ON for the material)

Expected result:

1. to release GPU and material auto-update should pause.
2. When re-opening material editor, have the up-to-that-point render shown  
in thumbnail and continue to update the material
3. Once the render update is done, should cache and no need to update again for that file  
(if material saved then the thumbnail should be kept to used for other files,  
i.e., auto update should no longer needed after import [perhaps unless user wishes to run update of material], also a manual pause of material update is good to have. )

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/7/7/774a19f24b68fbd5b24f1b71b51d6e246dbd76e8.png)

---

<div class="post-metadata">

**Author:** ![nathanletwory](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nathanletwory/32/482880_2.png) [@nathanletwory](https://discourse.mcneel.com/u/nathanletwory)\
**Post date:** [September 9, 2017, 7:10am UTC](https://discourse.mcneel.com/t/gpu-not-being-release-after-closing-material-editor/47324/2 "2017-09-09T07:10:45Z")

</div>

@Toshiaki_Takano, there is still one thumbnail visible in your screenshot: the environment.

The next public WIP will have a new advanced option PreviewSamples that you can tweak. I added this yesterday.

@andy, do you know if the preview job system just continues if thumbnails are no longer visible?

---

<div class="post-metadata">

**Author:** ![Toshiaki\_Takano](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/toshiaki_takano/32/483707_2.png) [@Toshiaki\_Takano](https://discourse.mcneel.com/u/Toshiaki_Takano)\
**Post date:** [September 9, 2017, 8:45am UTC](https://discourse.mcneel.com/t/gpu-not-being-release-after-closing-material-editor/47324/3 "2017-09-09T08:45:01Z")

</div>

> [@nathanletwory](#):
>
> The next public WIP will have a new advanced option PreviewSamples that you can tweak. I added this yesterday.

That’s great news! Thank you.

> [@nathanletwory](#):
>
> @Toshiaki_Takano, there is still one thumbnail visible in your screenshot: the environment.

I tried again with different side bar panel, but seems to still do the render preview after closing.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/4/0/405f54255105ce832ddca74471d606f37ec9d838.png)

Other thing was though the GPU processing stopped(so I’m guessing the preview is finished) When I reopen the material window the preview pane is blank.(below top screenshot)  
When I select another material then go back to the material previously highlighted, the preview rendering starts from scratch again…  
I tried turning off the Auto-update of the preview (second screenshot below)  
I get the triangle for the update notice, but preview is blank.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/2/b/2b6fa9b2ce88de66029d92fb41a651994bc227c0.png)  
 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/4/5/45548c465ab4cd5d4af590f5d5177e4d83864dad.png)

wondering if anyone else is seeing the same?  
running on GTX1050

---

<div class="post-metadata">

**Author:** ![nathanletwory](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nathanletwory/32/482880_2.png) [@nathanletwory](https://discourse.mcneel.com/u/nathanletwory)\
**Post date:** [September 9, 2017, 9:34am UTC](https://discourse.mcneel.com/t/gpu-not-being-release-after-closing-material-editor/47324/4 "2017-09-09T09:34:21Z")

</div>

The larger preview is different from the small thumbnail. Clicking it open even after the thumbnail has been done will currently start a render of it at the requested size. Resizing the preview will also cause a rerender. The initial preview is white precisely because it hasn’t rendered yet. Once rendered it should be cached for that size, though.

---

<div class="post-metadata">

**Author:** ![Toshiaki\_Takano](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/toshiaki_takano/32/483707_2.png) [@Toshiaki\_Takano](https://discourse.mcneel.com/u/Toshiaki_Takano)\
**Post date:** [September 9, 2017, 10:28am UTC](https://discourse.mcneel.com/t/gpu-not-being-release-after-closing-material-editor/47324/5 "2017-09-09T10:28:25Z")

</div>

> [@nathanletwory](#):
>
> The initial preview is white precisely because it hasn’t rendered yet.

Got it. Thank you for the clarification.
