Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2008-02-21 11:43:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2008-02-21 11:43:13 +0300
commit7c7a931fed41dcf51e2d537a9157c357f0285955 (patch)
tree956105c8e2ab7f8553bccb963a1630d54dc3d2b0 /source/blender/python
parent91d44a91249355827b6f135ab6e4fc52bfe926e4 (diff)
made auto threads default (noob's get faster renders in their dual core CPU's)
changed env variable check order $TMP, $TMPDIR - aparently $TMP is more common.
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/api2_2x/sceneRender.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/source/blender/python/api2_2x/sceneRender.c b/source/blender/python/api2_2x/sceneRender.c
index 29fc018e16d..428a4e82548 100644
--- a/source/blender/python/api2_2x/sceneRender.c
+++ b/source/blender/python/api2_2x/sceneRender.c
@@ -2089,7 +2089,7 @@ static int RenderData_setModeBit( BPy_RenderData* self, PyObject *value,
#define MODE_MASK ( R_OSA | R_SHADOW | R_GAMMA | R_ENVMAP | R_EDGE | \
R_FIELDS | R_FIELDSTILL | R_RADIO | R_BORDER | R_PANORAMA | R_CROP | \
- R_ODDFIELD | R_MBLUR | R_RAYTRACE | R_AUTO_THREADS )
+ R_ODDFIELD | R_MBLUR | R_RAYTRACE | R_FIXED_THREADS )
static PyObject *RenderData_getMode( BPy_RenderData *self )
{
@@ -2593,13 +2593,12 @@ static PyGetSetDef BPy_RenderData_getseters[] = {
(getter)RenderData_getModeBit, (setter)RenderData_setModeBit,
"Skip rendering existing image files",
(void *)R_NO_OVERWRITE},
- {"autoThreads",
+ {"fixedThreads",
(getter)RenderData_getModeBit, (setter)RenderData_setModeBit,
- "Use system number of processors",
- (void *)R_AUTO_THREADS},
+ "Use the number of threads defined by the blend file",
+ (void *)R_FIXED_THREADS},
/* R_GAUSS unused */
/* R_FBUF unused */
-/* R_AUTO_THREADS unused */
{"threads",
(getter)RenderData_getThreads, (setter)RenderData_setThreads,
"Number of threads used to render",
@@ -3721,7 +3720,7 @@ static PyObject *M_Render_ModesDict( void )
PyConstant_Insert( d, "ODDFIELD", PyInt_FromLong( R_ODDFIELD ) );
PyConstant_Insert( d, "MBLUR", PyInt_FromLong( R_MBLUR ) );
PyConstant_Insert( d, "RAYTRACING", PyInt_FromLong( R_RAYTRACE ) );
- PyConstant_Insert( d, "AUTOTHREADS", PyInt_FromLong( R_AUTO_THREADS ) );
+ PyConstant_Insert( d, "FIXEDTHREADS", PyInt_FromLong( R_FIXED_THREADS ) );
}
return M;
}