Chaos Corona Forum

General Category => General CG Discussion => Topic started by: naikku on 2014-09-19, 10:59:45

Title: Render engines at 100%
Post by: naikku on 2014-09-19, 10:59:45
I love working with Corona. One week ago I had to revert back to Mental Ray for one loooooong animation and an old problem came along.
As my computer renders a mental ray-image, everything is so slow. Cant do much anything with my computer when CPU-meter is at ~100%.
How come I can do much everything when I render with Corona and the CPU-meter is at ~100%?
Dont get me wrong, this is a good thing. Keymaster seems to be one hell of a coder :)

Is there same things with Vray? ..I have never used that.
No going back to mental ray - that would be just mental.

Title: Re: Render engines at 100%
Post by: tomislavn on 2014-09-19, 11:18:58
...Is there same things with Vray? ..I have never used that.
No going back to mental ray - that would be just mental.

Yeah, it is the same thing with V-Ray, I used to play some games while rendering or doing some designs, normally without hiccups. I guess that Corona and V-Ray just manage their resources better. Of course it won't render as fast as when you would let it use 100% of CPU power, but as long as you can live with some lost time it is no problem :)

Nowadays, I am just using another node for rendering so my main rig is free :)
Title: Re: Render engines at 100%
Post by: Ludvik Koutny on 2014-09-19, 11:26:58
Vray and Corona automatically set process priority when rendering to low, while MR does not. If you want to use your PC while rendering with MR, set 3dsmax.exe process priority to low in task manager.
Title: Re: Render engines at 100%
Post by: zzubnik on 2014-09-19, 11:47:18
Vray and Corona automatically set process priority when rendering to low, while MR does not. If you want to use your PC while rendering with MR, set 3dsmax.exe process priority to low in task manager.

I find that as well as doing this, changing the processor affinity to leave a couple of free cores really helps too.
Title: Re: Render engines at 100%
Post by: Ondra on 2014-09-19, 12:09:46
There are people with exactly opposite experience. In theory there should not be any problems, but it seems there are some fuckups in windows and/or 3dsmax.
Title: Re: Render engines at 100%
Post by: Paul Jones on 2014-09-19, 16:57:58
or change max afinity to all bar one core?
Title: Re: Render engines at 100%
Post by: blank... on 2014-09-19, 19:14:13
Vray and Corona automatically set process priority when rendering to low, while MR does not. If you want to use your PC while rendering with MR, set 3dsmax.exe process priority to low in task manager.

I think that as of Max2014 Mental is also set to low priority by default. And if i'm not mistaken setting 3dsmax.exe to low priority wouldn't help, there is some mental_some_or_other_process or service that needs to be taken down to low. This is what people did before Max2014, i never bothered to remember this because when i render i want 101% of processor power to the renderer :D
Title: Re: Render engines at 100%
Post by: blank... on 2014-09-20, 11:40:22
Regarding rendering at 100% it's interesting how Corona works. My processor is OCed (i7 3770k @ 4.5GHz), when i render with Mental, fan works at 80% or 100% (1900RPMs) to keep it at 75°C.
But with Corona fan is at 1200RPMs and processor is around 60°C. One more point for Corona :)
Title: Re: Render engines at 100%
Post by: Ondra on 2014-09-20, 12:12:14
This is weird... maybe because of all the computing optimizations Corona is more memory-limited, which causes pipeline stalls and idle cycles to be inserted. But I would have expected the exact opposite...
Title: Re: Render engines at 100%
Post by: blank... on 2014-09-20, 12:34:44
I don't know what pipeline stalls and idle cycles are, but i know that all cores are at 100% all the time. When rendering, off course.

EDIT: i'm rendering my vegetation test right now, today is a bit colder so fan is at its lowest (1100 RPMs) with all cores at 60-62°C.
Title: Re: Render engines at 100%
Post by: Ondra on 2014-09-20, 12:58:17
Even CPU showing 100% load can actually spend most of its time just idling and waiting for data from RAM. There are functions in Corona that spend 60% of time waiting for RAM. Fortunately it is a minority ;)
Title: Re: Render engines at 100%
Post by: Stan_But on 2014-09-20, 17:21:29
Guys!
What about put the script "Low priority.ms" in c:\Program Files\Autodesk\3ds Max 20xx\scripts\Startup\ ?

the script:  sysinfo.maxpriority = #low

or in attach
Title: Re: Render engines at 100%
Post by: rampally on 2014-09-25, 16:19:23
Even CPU showing 100% load can actually spend most of its time just idling and waiting for data from RAM. There are functions in Corona that spend 60% of time waiting for RAM. Fortunately it is a minority ;)

{There are functions in Corona that spend 60% of time waiting for RAM. Fortunately it is a minority } i didn't get this point key master can you elaborate  what is minority......60% is not minor
if we could deal with this problem it will be HUGE improvement.........in speed ........i think???
Title: Re: Render engines at 100%
Post by: Ondra on 2014-09-25, 19:33:40
minority (10%) of functions used spend majority of their time (60%) waiting for RAM. So in the end it is 60% from 10% which is only 6%. Give or take. The problem is more complex, but basically modern CPUs are not limited by the processing power, because it is extremely easy to just add extra adder or multiplicator to the CPU. What is limiting is waiting for data from RAM/caches, because memory just cannot keep up with 4GHz+ CPUs.
Title: Re: Render engines at 100%
Post by: rampally on 2014-09-26, 06:04:24
so any solution for this keymaster????

Is DDR4 a  solution keymaster???
Title: Re: Render engines at 100%
Post by: Ondra on 2014-09-26, 09:56:55
No, but if you would find one, I would be very happy, as would the rest of the world, since the CPU performance would rise about 4 times.
Title: Re: Render engines at 100%
Post by: blank... on 2014-09-26, 10:30:06
No, but if you would find one, I would be very happy, as would the rest of the world, since the CPU performance would rise about 4 times.

And crush those GPU renderers to dust like they deserve? Keymaster, better start working on it :D
Title: Re: Render engines at 100%
Post by: arqrenderz on 2014-09-26, 14:28:25
So if i use on Corona a ddr3 memory 1666mhz  and the a memory of 2800mhz will i see A BIG change?
Title: Re: Render engines at 100%
Post by: Ondra on 2014-09-26, 14:57:27
no, since they both have comparable latency. - the 2800MHz one will have higher timing numbers. 2800MHz is useless, if you still have to wait 50 cycles for addressing. Plus the entire path from the cache miss to interrupt to bus to ram to bus to cache takes much, much more.
Title: Re: Render engines at 100%
Post by: Stan_But on 2014-09-26, 15:29:06
No Ondra. It will change
Maybe it affect while the geometry is loading in memory to render, but even  benchmark run faster with more fast memory
Title: Re: Render engines at 100%
Post by: Ondra on 2014-09-26, 15:50:35
sure, but not by 60%
Title: Re: Render engines at 100%
Post by: Stan_But on 2014-09-26, 16:14:20
sure, but not by 60%

Yes. Maybe even less (;
Title: Re: Render engines at 100%
Post by: borisquezadaa on 2014-09-27, 07:03:40
Where is the quantum computer whn needed.
Title: Re: Render engines at 100%
Post by: Ondra on 2014-09-27, 10:53:07
Where is the quantum computer whn needed.
It would not help with rendering... at all.
Title: Re: Render engines at 100%
Post by: rampally on 2014-09-27, 17:12:01
No, but if you would find one, I would be very happy, as would the rest of the world, since the CPU performance would rise about 4 times.

Is DDR4 a  solution keymaster???
Title: Re: Render engines at 100%
Post by: Ondra on 2014-09-27, 17:20:21
no. Don't think about it as some problem that needs to be overcomed. There has to be something that ultimately limits the computing speed, right? ;)
Title: Re: Render engines at 100%
Post by: Juraj on 2014-09-28, 18:06:15
That's pretty interesting to hear, I was always of opposite opinion as in most applications (outside of integrated GPU solutions like AMD Apu) the speed of memory made zero difference. My workstation has 2400MHz (just for sake of it), and older one 1600 running at 1333. Clocked to match performance (CPUs, 4930/3930k i7), there is again, zero difference in render times, gaming (2-3 FPS ?), or general computer usage.
Title: Re: Render engines at 100%
Post by: Ondra on 2014-09-28, 19:01:10
this is because the relative performance of 2400MHz and 1600MHz RAM is equally bad compared to the CPU