Page 1 of 1

Why is MW Render Batch_Render script rendering so slow?

Posted: Fri Oct 30, 2015 9:21 pm
by adamwade
Using MW 3.2 (windows 7pro 64bit)
I was just noticing that my rendering speed was very slow when using the "batch_render" script in MW render. It was like all the cores were not being used?, but the console read using all 32 cores.

When I use Network Rendering and just my machine everything works just fine at normal rendering speed.

Any thoughts.

Re: Why is MW Render Batch_Render script rendering so slow?

Posted: Thu Jun 09, 2016 6:43 pm
by CDRDA
I am also having this issue, although I have a node locked license and can't use the network manager! I'm currently researching another solution/ new script to see if that works.

Re: Why is MW Render Batch_Render script rendering so slow?

Posted: Fri Jun 10, 2016 9:45 am
by luis.hijarrubia
I think is because of a while ( 1 ) there. On my experience i find pymaxwell more effective to do this kind of scripts. It would be useful to have a batch render script on python on the examples folder.

Re: Why is MW Render Batch_Render script rendering so slow?

Posted: Fri Jun 10, 2016 1:07 pm
by Mihai
This is strange since the script simply loads an MXS and renders it. Could you run a small test to compare?

Re: Why is MW Render Batch_Render script rendering so slow?

Posted: Wed Jun 29, 2016 3:53 pm
by tom
Yes, I've run a small test a short while ago and I confirm that while loop in the code sucks the performance.
Here's how it works:
Code: Select all
for( i = 0; i < mxsCount; i++ )
{
  renderScene();
  while( 1 )
  {
    if( isRendering == 0 )
    {
        break;
    }
  }
}
Throughout this loop, it checks if it's still rendering or stopped in every possible tick it can.

I suggest writing a dos batch which worked like a charm for me.

Re: Why is MW Render Batch_Render script rendering so slow?

Posted: Fri Jul 01, 2016 1:31 pm
by CDRDA
I circumvented the problem with a pyMaxwell script I found online- Andrew Hazelden's Maxwell-Render-Toolbox. Very useful and easy enough to setup as long as you remember to replace any pasted folder location backslashes with /. Rendering speed was back to normal.

I don't use batch render often, but have done in previous Maxwell versions without this issue.

Re: Why is MW Render Batch_Render script rendering so slow?

Posted: Fri Sep 09, 2016 6:10 pm
by adamwade
Can Someone post the fixed script for pasting into MW render? Sorry for the late reply, but here I am stuck again. I'm not a DOS or scripting guy.

Thanks !

Re: Why is MW Render Batch_Render script rendering so slow?

Posted: Fri Nov 18, 2016 8:43 am
by adamwade
:?: OK so now I'm just rendering normal scenes (no scripts) and they are stuck in SLOW mode. This happens when opening an MXS from MW render, or rendering straight from Rhino. I restart the computer and sometimes it fixes it, but today it kept rendering impossibly slow even after restarting. The thread setting was Auto, but I changed manually to 32 (my machines max) and it got to SL2 quickly, but then went super slow again??!!

Should I just reinstall, or is there some other fix?

Re: Why is MW Render Batch_Render script rendering so slow?

Posted: Fri Nov 18, 2016 4:43 pm
by burnin
You can leave CPU Threads on Automatic unless you need some for extra work while rendering. More important (the solution) is to set Priority from Low to Normal. It is still same with v4.

Re: Why is MW Render Batch_Render script rendering so slow?

Posted: Fri Nov 18, 2016 5:28 pm
by numerobis
adamwade wrote::?: OK so now I'm just rendering normal scenes (no scripts) and they are stuck in SLOW mode. This happens when opening an MXS from MW render, or rendering straight from Rhino. I restart the computer and sometimes it fixes it, but today it kept rendering impossibly slow even after restarting. The thread setting was Auto, but I changed manually to 32 (my machines max) and it got to SL2 quickly, but then went super slow again??!!

Should I just reinstall, or is there some other fix?
Is this on win 7/8 or win 10? If it's win7/8 my next question would be, if the windows update is enabled. If yes, disable the update service.

Re: Why is MW Render Batch_Render script rendering so slow?

Posted: Fri Nov 18, 2016 6:45 pm
by adamwade
burnin wrote:You can leave CPU Threads on Automatic unless you need some for extra work while rendering. More important (the solution) is to set Priority from Low to Normal. It is still same with v4.
Hmm. I can try this, but I've been using Maxwell for over 10 years and never had this occur before. It's always been in low priority. Thanks for the idea.

Re: Why is MW Render Batch_Render script rendering so slow?

Posted: Fri Nov 18, 2016 6:49 pm
by adamwade
numerobis wrote:
adamwade wrote::?: OK so now I'm just rendering normal scenes (no scripts) and they are stuck in SLOW mode. This happens when opening an MXS from MW render, or rendering straight from Rhino. I restart the computer and sometimes it fixes it, but today it kept rendering impossibly slow even after restarting. The thread setting was Auto, but I changed manually to 32 (my machines max) and it got to SL2 quickly, but then went super slow again??!!

Should I just reinstall, or is there some other fix?
Is this on win 7/8 or win 10? If it's win7/8 my next question would be, if the windows update is enabled. If yes, disable the update service.

Yes this is Windows 7 and yes windows update is on, but set to manual download & install. So it only checks for updates, but will not download or install automatically. I will definitely try this (thank you !), but it's strange that I've never had this problem before in over 10 years of Maxwell use.