Blender Git Commit Log
Git Commits -> Revision 0429965
Revision 0429965 by Brecht Van Lommel (master) February 5, 2011, 13:41 (GMT) |
Raytrace modifications from the Render Branch. These should not have any effect on render results, except in some cases with you have overlapping faces, where the noise seems to be slightly reduced. There are some performance improvements, for simple scenes I wouldn't expect more than 5-10% to be cut off the render time, for sintel scenes we got about 50% on average, that's with millions of polygons on intel quad cores. This because memory access / cache misses were the main bottleneck for those scenes, and the optimizations improve that. Interal changes: * Remove RE_raytrace.h, raytracer is now only used by render engine again. * Split non-public parts rayobject.h into rayobject_internal.h, hopefully makes it clearer how the API is used. * Added rayintersection.h to contain some of the stuff from RE_raytrace.h * Change Isect.vec/labda to Isect.dir/dist, previously vec was sometimes normalized and sometimes not, confusing... now dir is always normalized and dist contains the distance. * Change VECCOPY and similar to BLI_math functions. * Force inlining of auxiliary functions for ray-triangle/quad intersection, helps a few percentages. * Reorganize svbvh code so all the traversal functions are in one file * Don't do test for root so that push_childs can be inlined * Make shadow a template parameter so it doesn't need to be runtime checked * Optimization in raytree building, was computing bounding boxes more often than necessary. * Leave out logf() factor in SAH, makes tree build quicker with no noticeable influence on raytracing on performance? * Set max childs to 4, simplifies traversal code a bit, but also seems to help slightly in general. * Store child pointers and child bb just as fixed arrays of size 4 in nodes, nearly all nodes have this many children, so overall it actually reduces memory usage a bit and avoids a pointer indirection. |
Commit Details:
Full Hash: 04299657a7eaee212b983b27bed6b66793f7a985
SVN Revision: 34656
Parent Commit: 90cf78e
Lines Changed: +2640, -2514
7 Added Paths:
/source/blender/render/intern/include/rayintersection.h (+124, -0) (View)
/source/blender/render/intern/raytrace/rayobject_blibvh.cpp (+168, -0) (View)
/source/blender/render/intern/raytrace/rayobject_empty.cpp (+75, -0) (View)
/source/blender/render/intern/raytrace/rayobject_instance.cpp (+208, -0) (View)
/source/blender/render/intern/raytrace/rayobject_internal.h (+128, -0) (View)
/source/blender/render/intern/raytrace/rayobject_octree.cpp (+1080, -0) (View)
/source/blender/render/intern/raytrace/rayobject_raycounter.cpp (+88, -0) (View)
/source/blender/render/intern/raytrace/rayobject_blibvh.cpp (+168, -0) (View)
/source/blender/render/intern/raytrace/rayobject_empty.cpp (+75, -0) (View)
/source/blender/render/intern/raytrace/rayobject_instance.cpp (+208, -0) (View)
/source/blender/render/intern/raytrace/rayobject_internal.h (+128, -0) (View)
/source/blender/render/intern/raytrace/rayobject_octree.cpp (+1080, -0) (View)
/source/blender/render/intern/raytrace/rayobject_raycounter.cpp (+88, -0) (View)
5 Deleted Paths:
/source/blender/render/extern/include/RE_raytrace.h (+0, -217)
/source/blender/render/intern/source/rayobject_blibvh.c (+0, -170)
/source/blender/render/intern/source/rayobject_instance.c (+0, -210)
/source/blender/render/intern/source/rayobject_octree.c (+0, -1082)
/source/blender/render/intern/source/rayobject_raycounter.c (+0, -87)
/source/blender/render/intern/source/rayobject_blibvh.c (+0, -170)
/source/blender/render/intern/source/rayobject_instance.c (+0, -210)
/source/blender/render/intern/source/rayobject_octree.c (+0, -1082)
/source/blender/render/intern/source/rayobject_raycounter.c (+0, -87)
24 Modified Paths:
/source/blender/blenkernel/intern/scene.c (+1, -0) (Diff)
/source/blender/render/CMakeLists.txt (+8, -6) (Diff)
/source/blender/render/extern/include/RE_shader_ext.h (+0, -1) (Diff)
/source/blender/render/intern/include/raycounter.h (+23, -7) (Diff)
/source/blender/render/intern/include/rayobject.h (+53, -142) (Diff)
/source/blender/render/intern/include/rendercore.h (+2, -1) (Diff)
/source/blender/render/intern/include/render_types.h (+1, -0) (Diff)
/source/blender/render/intern/include/volumetric.h (+4, -0) (Diff)
/source/blender/render/intern/raytrace/bvh.h (+48, -16) (Diff)
/source/blender/render/intern/raytrace/rayobject.cpp (+293, -355) (Diff)
/source/blender/render/intern/raytrace/rayobject_hint.h (+2, -0) (Diff)
/source/blender/render/intern/raytrace/rayobject_qbvh.cpp (+22, -16) (Diff)
/source/blender/render/intern/raytrace/rayobject_rtbuild.cpp (+23, -10) (Diff)
/source/blender/render/intern/raytrace/rayobject_svbvh.cpp (+16, -8) (Diff)
/source/blender/render/intern/raytrace/rayobject_vbvh.cpp (+17, -9) (Diff)
/source/blender/render/intern/raytrace/reorganize.h (+6, -6) (Diff)
/source/blender/render/intern/raytrace/svbvh.h (+109, -33) (Diff)
/source/blender/render/intern/raytrace/vbvh.h (+8, -6) (Diff)
/source/blender/render/intern/source/convertblender.c (+21, -16) (Diff)
/source/blender/render/intern/source/rayshade.c (+75, -82) (Diff)
/source/blender/render/intern/source/rendercore.c (+10, -9) (Diff)
/source/blender/render/intern/source/renderdatabase.c (+1, -1) (Diff)
/source/blender/render/intern/source/volumetric.c (+16, -15) (Diff)
/source/blender/render/intern/source/volume_precache.c (+10, -9) (Diff)
/source/blender/render/CMakeLists.txt (+8, -6) (Diff)
/source/blender/render/extern/include/RE_shader_ext.h (+0, -1) (Diff)
/source/blender/render/intern/include/raycounter.h (+23, -7) (Diff)
/source/blender/render/intern/include/rayobject.h (+53, -142) (Diff)
/source/blender/render/intern/include/rendercore.h (+2, -1) (Diff)
/source/blender/render/intern/include/render_types.h (+1, -0) (Diff)
/source/blender/render/intern/include/volumetric.h (+4, -0) (Diff)
/source/blender/render/intern/raytrace/bvh.h (+48, -16) (Diff)
/source/blender/render/intern/raytrace/rayobject.cpp (+293, -355) (Diff)
/source/blender/render/intern/raytrace/rayobject_hint.h (+2, -0) (Diff)
/source/blender/render/intern/raytrace/rayobject_qbvh.cpp (+22, -16) (Diff)
/source/blender/render/intern/raytrace/rayobject_rtbuild.cpp (+23, -10) (Diff)
/source/blender/render/intern/raytrace/rayobject_svbvh.cpp (+16, -8) (Diff)
/source/blender/render/intern/raytrace/rayobject_vbvh.cpp (+17, -9) (Diff)
/source/blender/render/intern/raytrace/reorganize.h (+6, -6) (Diff)
/source/blender/render/intern/raytrace/svbvh.h (+109, -33) (Diff)
/source/blender/render/intern/raytrace/vbvh.h (+8, -6) (Diff)
/source/blender/render/intern/source/convertblender.c (+21, -16) (Diff)
/source/blender/render/intern/source/rayshade.c (+75, -82) (Diff)
/source/blender/render/intern/source/rendercore.c (+10, -9) (Diff)
/source/blender/render/intern/source/renderdatabase.c (+1, -1) (Diff)
/source/blender/render/intern/source/volumetric.c (+16, -15) (Diff)
/source/blender/render/intern/source/volume_precache.c (+10, -9) (Diff)