Print at Dec 16, 2025, 3:51:30 AM

Posted by enkonyito at Jun 3, 2019, 12:18:30 AM
Additional Sunflow options (tests)
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:
int threads = X;
this.sunflow.parameter("threads", threads);
this.sunflow.options(SunflowAPI.DEFAULT_OPTIONS);




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



* Options:
-lopri
-hipri

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

SH3D implementation:
boolean lowPriority = true;
this.sunflow.parameter("threads.lowPriority", !lowPriority);
this.sunflow.options(SunflowAPI.DEFAULT_OPTIONS);


No major differences in rendering time.
----------------------------------------
EnkoNyito