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.
This commit is contained in:
2008-02-21 08:43:13 +00:00
parent 91d44a9124
commit 7c7a931fed
6 changed files with 27 additions and 23 deletions

View File

@@ -1108,7 +1108,7 @@ void RE_InitState(Render *re, Render *source, RenderData *rd, int winx, int winy
/* we clip faces with a minimum of 2 pixel boundary outside of image border. see zbuf.c */
re->clipcrop= 1.0f + 2.0f/(float)(re->winx>re->winy?re->winy:re->winx);
if (rd->mode & R_AUTO_THREADS || commandline_threads == 0) { /* Automatic threads */
if (rd->mode & R_FIXED_THREADS || commandline_threads == 0) { /* Automatic threads */
re->r.threads = BLI_system_thread_count();
} else if(commandline_threads >= 1 && commandline_threads<=BLENDER_MAX_THREADS) {
re->r.threads= commandline_threads;