[Bf-blender-cvs] [c21aa1d] temp-cycles-microdisplacement: Lower default max_T from 128 to 12

Mai Lavelle noreply at git.blender.org
Fri May 13 01:27:22 CEST 2016


Commit: c21aa1d6898044b6df06d4d81de4218f50c7877a
Author: Mai Lavelle
Date:   Thu May 12 19:14:55 2016 -0400
Branches: temp-cycles-microdisplacement
https://developer.blender.org/rBc21aa1d6898044b6df06d4d81de4218f50c7877a

Lower default max_T from 128 to 12

This improves cache performance by reducing the maximum size of subpatches,
making tessellation both less likely to occur and faster. Difference in
performance is theoretically 100 times faster during thrashing as maximum
subpatch surface area is 100 time smaller, tho actual performance will vary.

===================================================================

M	intern/cycles/subd/subd_dice.h

===================================================================

diff --git a/intern/cycles/subd/subd_dice.h b/intern/cycles/subd/subd_dice.h
index ec57003..54e1157 100644
--- a/intern/cycles/subd/subd_dice.h
+++ b/intern/cycles/subd/subd_dice.h
@@ -48,7 +48,7 @@ struct SubdParams {
 		split_threshold = 1;
 		dicing_rate = 0.1f;
 		max_level = 12;
-		max_T = 128;
+		max_T = 12;
 		camera = NULL;
 		subpatch = NULL;
 	}




More information about the Bf-blender-cvs mailing list