Rendering Threads

This topic has been viewed 2740 times and has 4 replies
Thread status: Active
How can I do this? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
User avatar
rca19
Posts: 20
Joined: Tue Oct 16, 2012 4:25 pm

Rendering Threads

Post by rca19 »

On my Linux box, it looks like the image renderer is using 8 threads. Is there a way to adjust that value up/down?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Rendering Threads

Post by Puybaret »

Not from the user interface. Otherwise, by program, you could add the row

Code: Select all

  this.sunflow.parameter("threads", [i]numberOfThreads[/i]);
in the render method of com.eteks.sweethome3d.j3d.PhotoRenderer class.
Emmanuel Puybaret, Sweet Home 3D creator
User avatar
rca19
Posts: 20
Joined: Tue Oct 16, 2012 4:25 pm

Re: Rendering Threads

Post by rca19 »

Not sure how to rebuild the source on Linux ... maybe this can be a feature request for the PhotoRenderer in a future release?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Rendering Threads

Post by Puybaret »

Why not using the full power of the processor would be useful?
Emmanuel Puybaret, Sweet Home 3D creator
User avatar
rca19
Posts: 20
Joined: Tue Oct 16, 2012 4:25 pm

Re: Rendering Threads

Post by rca19 »

I noticed yesterday that my machine was totally swamped with java processes while doing photo rendering. Sometimes I want to do other tasks concurrently, so changing the number of render threads would be useful.

I didn't look at the code that closely, but does the photoRenderer automatically create a render thread for each processor on the system? So if I had a 16-processor machine, it would generate 16 render threads?
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 2 guests