pymel.core.general.threadCount

threadCount(*args, **kwargs)

This command sets the number of threads to be used by Maya in regions of code that are multithreaded. By default the number of threads is equal to the number of logical CPUs, not the number of physical CPUs. Logical CPUs are different from physical CPUs in the following ways:A physical CPU with hyperthreading counts as two logical CPUsA dual-core CPU counts as two logical CPUsWith some workloads, using one thread per logical CPU may not perform well. This is sometimes the case with hyperthreading. It is worth experimenting with different numbers of threads to see which gives the best performance. Note that having more threads can mean Maya uses more memory. Setting a value of zero means the number of threads used will equal the number of logical processors in the system. In query mode, return type is based on queried flag.

Flags:
  • numberOfThreads : n (int) [create,query]

    Sets the number of threads to use Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.threadCount

Previous topic

pymel.core.general.symmetricModelling

Next topic

pymel.core.general.timeCode

Core

Core Modules

Other Modules

This Page