Blender Git Loki

Git Commits -> Revision 75aa866

Revision 75aa866 by Germano Cavalcante (master)
February 4, 2017, 22:01 (GMT)
Optimize BVHTree creation of vertices that have BLI_bitmap test

Instead of reference the vertex first and test the bitmap afterwards. Test the bitmap first and reference the vertex after.

In a mesh with 31146 vertices and the entire bitmap disabled, the loop time is 243% faster
With all bitmap enabled, the time becomes 463473% faster!!!

One possible reason for this huge difference in peformance is that maybe the compiler is not putting the function "BM_vert_at_index" inline (I dont know if buildbot do this, but it's good to investigate).

Commit Details:

Full Hash: 75aa866211203914076f1b76480bf604fb9dd823
Parent Commit: 47caf34
Lines Changed: +40, -6

1 Modified Path:

/source/blender/blenkernel/intern/bvhutils.c (+40, -6) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021