Page MenuHome

Thread command line argument ignored
Closed, ResolvedPublic

Description

Blender appears to be ignoring the thread command line argument (-t). Expected behavior is that when rendering from command line using "-t 1", blender uses a maximimum of 1 thread. This should correspond to roughly 25% CPU usage on a quad-core computer.

Render from command line using:
"blender test.blend -b -t 1 -f 1"
CPU usage of blender process will be 100%; expected is 25% (on quad-core system)

Event Timeline

Aaron Carlisle (Blendify) lowered the priority of this task from 90 to 30.Apr 26 2017, 6:22 PM

Are you sure you are setting the command line argument correctly? Try running just blender -t 1 and see if while rendering you only see one tile.

Okay, I did some more tests blender test.blend -f 1 -t 1 -b uses 4 threads, but blender test.blend -t 1 -f 1 -b only uses one.
Do you think this is intended behavior? I'd think they should both use only one thread.

I see. I guess I didn't read the docs / command-line help close enough.

I have a patch to edit the command line help, I will apply it within the next hour.

Done, The manual will be updated next time we sync the changes.

Reverted rBa6b9bd023b18 since this doesn't need to be the first.

The text under Argument Order: covers this already.

Although this is a common problem people run into it could be made more prominent.