Additional Sunflow options (tests)

by enkonyito » Mon Jun 03, 2019 12:18 am

Sunflow has command line options to control the rendering result without the GUI.
The goal here is to test their actions in Sweet Home 3D.


* Option:
-threads X
Allows you to force the number of threads used for rendering (BucketRenderer, MultipassRenderer).
Default value: number of available processors.

SH3D implementation:
[font=courier new]int threads = X;
this.sunflow.parameter("threads", threads);
this.sunflow.options(SunflowAPI.DEFAULT_OPTIONS);[/font]

Image Image Image

No major differences in rendering time if the number of virtual threads is greater than the number of actual threads available.
Image Image


* Options:
-lopri
-hipri

Allows you to set the priority of the threads.
Default value: lowPriority = true.

SH3D implementation:
[font=courier new]boolean lowPriority = true;
this.sunflow.parameter("threads.lowPriority", !lowPriority);
this.sunflow.options(SunflowAPI.DEFAULT_OPTIONS);[/font]

No major differences in rendering time.