Planetside Software Forums

Support => Terragen Support => Topic started by: Kadri on February 06, 2019, 05:30:01 pm

Title: Affinity of cores changes after every rendered frame.
Post by: Kadri on February 06, 2019, 05:30:01 pm

I don't remember this happening before, if i remember right of course.
Is this a Windows 10 (64 bit) problem (affinity change made in task manager) or Terragen related ?

This is kinda annoying when you are rendering a long animation and want the computer for other uses too.
Title: Re: Affinity of cores changes after every rendered frame.
Post by: Oshyan on February 06, 2019, 09:08:43 pm
Are you rendering from the GUI or commandline? If it's in the GUI it shouldn't change every frame, as far as I know...

- Oshyan
Title: Re: Affinity of cores changes after every rendered frame.
Post by: Kadri on February 06, 2019, 09:15:13 pm

I have never used the commandline. Just from the GUI Oshyan.

It surprised me. I had suspicions about it (and i wrote it here around too i think before).
But tonight i saw it clearly changing after every frame (i just tested it for 2-3 frames).

It is the same project i send to you about the smooth node by the way.

When the affinity changing computer is the computer your wife uses it gets actually a little more then annoying :)
Title: Re: Affinity of cores changes after every rendered frame.
Post by: Oshyan on February 06, 2019, 09:48:34 pm
Why not just limit the number of render threads in the Preferences or Render node settings?

- Oshyan
Title: Re: Affinity of cores changes after every rendered frame.
Post by: Kadri on February 06, 2019, 10:03:32 pm

When my wife doesn't use the computer only 6 cores are used. She changes the affinity easily from the task manager.
But changing the cores from within Terragen dynamically isn't the same when you think about how many times someone is on and off the computer.
For me it is easy (i am nearly always using my computer), but she doesn't.
If you take into account that rendering will take maybe at least 2-3 months or more... It is not practical in that use case.

I don't know even if dynamically changing the render treads while rendering is secure and-or is effective (is it?).
Title: Re: Affinity of cores changes after every rendered frame.
Post by: Matt on February 06, 2019, 10:23:42 pm
Quote from: Kadri on February 06, 2019, 10:03:32 pm
I don't know even if dynamically changing the render treads while rendering is secure and-or is effective (is it?).


It is safe, but the change will not take effect until the next frame starts.
Title: Re: Affinity of cores changes after every rendered frame.
Post by: Oshyan on February 06, 2019, 10:27:46 pm
I would suggest using something like ProcessLasso then. https://bitsum.com/ I'm fairly sure this is something we can't control, or at least not easily.

- Oshyan
Title: Re: Affinity of cores changes after every rendered frame.
Post by: Kadri on February 06, 2019, 10:32:01 pm

Thanks Matt.
Render time can-will go up to 1 hour or so. That is not quite practical too unfortunately but good to know.

Thanks Oshyan for the link. I will have a look.
Title: Re: Affinity of cores changes after every rendered frame.
Post by: Kadri on February 06, 2019, 11:04:19 pm

I tried it on my pc to replicate it and it didn't work (affinity stayed the same).

I tried it on my wife's computer (a laptop that could be a hint of the problem). But no. Even the same scene stayed the same. No affinity change.
This happened before too and was the reason i hesitate to say anything clearly.
We both looked at the change and saw it together so an error on our side is much much less likely...

I hate when things on a computer behave in this way and you can't be sure what and why it is happening.

If anyone who does have seen a similar behaviour can say something more about this i would be happy.
Good that it is at least just in the annoying category.
Title: Re: Affinity of cores changes after every rendered frame.
Post by: Kadri on February 07, 2019, 01:41:45 pm

Just for information.
The long render that is going on on the laptop (the same project i send you about the smoothing problem) behaves still in the same weird way about affinity.
We tried a couple more times and it changes after every rendered frame.
On my pc there is no problem at all. Strange really.
Title: Re: Affinity of cores changes after every rendered frame.
Post by: archonforest on February 07, 2019, 01:59:09 pm
Perhaps the laptop got a special power management? Like power saving can regulate the speed of the cpu...
Title: Re: Affinity of cores changes after every rendered frame.
Post by: Kadri on February 07, 2019, 02:11:56 pm

Yeah that comes to my mind too. But it does not happen all the time. Rarely actually.

And then there are not many but some posts about this like this about 3DMax, Vray rendering:
https://forums.autodesk.com/t5/3ds-max-forum/3d-studio-keeps-resetting-cpu-affinity/td-p/7601753

Some changes like mentioned in this thread comes to my mind.
https://planetside.co.uk/forums/index.php/topic,21888.msg220123.html#msg220123
Coincidence only maybe.

Anyway moving on.
Title: Re: Affinity of cores changes after every rendered frame.
Post by: Kadri on February 12, 2019, 06:30:29 am

Another update. Now it resets the affinity on my pc too after every frame.
Title: Re: Affinity of cores changes after every rendered frame.
Post by: Matt on February 12, 2019, 11:51:26 am
New threads are created on each frame, but it has always worked this way and Windows affinity settings carried over to the new threads. If the affinity behaviour has changed then it's a change in Windows.
Title: Re: Affinity of cores changes after every rendered frame.
Post by: Kadri on February 12, 2019, 12:08:25 pm

Probably. Just curious why it is not consistent.
Wish i could find something more about this and if possible a solution.