# VRay taking forever to finish render

**URL:** <https://forums.chaos.com/t/vray-taking-forever-to-finish-render/54358>\
**Category:** Issues\
**Created:** [June 25, 2015, 2:02pm UTC](https://forums.chaos.com/t/vray-taking-forever-to-finish-render/54358 "2015-06-25T14:02:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Macker](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@Macker](https://forums.chaos.com/u/Macker)\
**Post date:** [June 25, 2015, 2:02pm UTC](https://forums.chaos.com/t/vray-taking-forever-to-finish-render/54358/1 "2015-06-25T14:02:56Z")

</div>

Hey guys,

I’ve got a project going on that isn’t particularly large, nothing fancy going on…

It renders just fine, right the way through and all buckets complete however once it has completed it freezes for up to 10 minutes. It just reads “Current Task: Rendering Image…: Done” and stays there.

---

<div class="post-metadata">

**Author:** ![Morne](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/morne/32/11335_2.png) [@Morne](https://forums.chaos.com/u/Morne)\
**Post date:** [June 25, 2015, 3:02pm UTC](https://forums.chaos.com/t/vray-taking-forever-to-finish-render/54358/2 "2015-06-25T15:02:22Z")

</div>

Could you try sticking this in a pre AND post render script and see what you get?

`FreeSceneBitmaps()`

Let us know…

---

<div class="post-metadata">

**Author:** ![Macker](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@Macker](https://forums.chaos.com/u/Macker)\
**Post date:** [June 26, 2015, 7:41am UTC](https://forums.chaos.com/t/vray-taking-forever-to-finish-render/54358/3 "2015-06-26T07:41:11Z")

</div>

Not being at all fluent in maxscript, do I just enter this into the max script listener?

---

<div class="post-metadata">

**Author:** ![Morne](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/morne/32/11335_2.png) [@Morne](https://forums.chaos.com/u/Morne)\
**Post date:** [June 26, 2015, 11:52am UTC](https://forums.chaos.com/t/vray-taking-forever-to-finish-render/54358/4 "2015-06-26T11:52:32Z")

</div>

> [@Macker](#):
>
> Not being at all fluent in maxscript, do I just enter this into the max script listener?

Oops sorry, here’s some more info  
Stick that in notepad then save it with whatever filename, but instead of the extension “txt”, change the extension to “ms”  
Then in the render dialog under the common tab, scroll down to the bottom, there’s a section there called “Scripts”  
Expand that part then in the Pre and Post-Render section, browse to the file you just saved with the “ms” extension.

So then what will happen when you next time render, it will 1st run the pre-run script, and after that it will actually start to render. Then when the render is “done”, it will run the post render script.

You shouldnt need this script in the pre and post, but just in your case we’re troubleshooting your scene…

---

<div class="post-metadata">

**Author:** ![Macker](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@Macker](https://forums.chaos.com/u/Macker)\
**Post date:** [July 23, 2015, 10:14am UTC](https://forums.chaos.com/t/vray-taking-forever-to-finish-render/54358/5 "2015-07-23T10:14:08Z")

</div>

I’m having the problem again with another scene - it appears to be scenes with a lot of displacement causing the issue. That said, I don’t think having displacement on a road and some brickwork is overkill?

---

<div class="post-metadata">

**Author:** ![svetlozar.draganov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/svetlozar.draganov/32/53004_2.png) [@svetlozar.draganov](https://forums.chaos.com/u/svetlozar.draganov)\
**Post date:** [July 24, 2015, 11:03am UTC](https://forums.chaos.com/t/vray-taking-forever-to-finish-render/54358/6 "2015-07-24T11:03:53Z")

</div>

Is there a chance to sent that scene for investigation?  
Let us also know the exact versions of V-Ray and 3DSmax and what steps we should follow in order to reproduce the issue the same way into our environment.

---

<div class="post-metadata">

**Author:** ![alexyork](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/alexyork/32/271382_2.png) [@alexyork](https://forums.chaos.com/u/alexyork)\
**Post date:** [July 24, 2015, 3:12pm UTC](https://forums.chaos.com/t/vray-taking-forever-to-finish-render/54358/7 "2015-07-24T15:12:26Z")

</div>

I’m also having this on a job. Lots and lots of maps being used, loads of objects, lights etc. Complex scene. The render moves along just fine but it hangs for a good while, maybe 1 minute or so, saying “Done” before it starts writing the output. Once it’s written it appears to jump back to life fairly quickly.

---

<div class="post-metadata">

**Author:** ![Zdravko.Keremidchiev](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/zdravko.keremidchiev/32/48745_2.png) [@Zdravko.Keremidchiev](https://forums.chaos.com/u/Zdravko.Keremidchiev)\
**Post date:** [July 27, 2015, 11:17am UTC](https://forums.chaos.com/t/vray-taking-forever-to-finish-render/54358/8 "2015-07-27T11:17:49Z")

</div>

It will be helpful if some of you could send us an example scene to [support@chaosgroup.com](mailto:support@chaosgroup.com) so we could investigate the issue further.
