Sophie

Sophie

distrib > Mandriva > 2008.0 > x86_64 > by-pkgid > 8c1a96618c5f76e0d4006fa5d8b85d82 > files > 11

blender-2.45-2.1mdv2008.0.src.rpm

--- blender-2.43/source/blender/src/buttons_scene.c.maxthreads	2007-04-17 16:24:59.000000000 +0200
+++ blender-2.43/source/blender/src/buttons_scene.c	2007-04-17 16:44:41.000000000 +0200
@@ -1715,7 +1715,7 @@
 	uiDefButF(block, NUMSLI, B_DIFF, "Gam ", 5,10,150,20, &G.scene->r.YF_gamma, 0.001, 5.0, 0, 0, "Gamma correction, 1 is off");
 	uiDefButF(block, NUMSLI, B_DIFF, "Exp ", 160,10,150,20,&G.scene->r.YF_exposure, 0.0, 10.0, 0, 0, "Exposure adjustment, 0 is off");
         
-	uiDefButI(block, NUM, B_DIFF, "Processors:", 160,60,150,20, &G.scene->r.YF_numprocs, 1.0, 8.0, 10, 10, "Number of processors to use");
+	uiDefButI(block, NUM, B_DIFF, "Processors:", 160,60,150,20, &G.scene->r.YF_numprocs, 1.0, YAFRAY_MAX_THREADS, 10, 10, "Number of processors to use");
 
 	/*AA Settings*/
 	uiDefButBitS(block, TOGN, 1, B_REDR, "Auto AA", 5,140,150,20, &G.scene->r.YF_AA, 
--- blender-2.43/source/blender/blenlib/BLI_threads.h.maxthreads	2006-12-21 16:44:46.000000000 +0100
+++ blender-2.43/source/blender/blenlib/BLI_threads.h	2007-04-17 16:43:17.000000000 +0200
@@ -36,7 +36,8 @@
 #define LOCK_CUSTOM1	1
 
 /* for tables, button in UI, etc */
-#define BLENDER_MAX_THREADS		8
+#define BLENDER_MAX_THREADS		16
+#define YAFRAY_MAX_THREADS		16.0
 
 struct ListBase;