From 3fbdcefa174dd85972b7b63c0955e3a8d42f6943 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 6 Sep 2018 17:06:17 +0200 Subject: Subdiv: Initial implementation of CCG Attempts to substitude CCGDM with an OpenSubdiv based structure which has less abstraction levels. The missing part in this substitude is a face pointers which old CCGDM/multires code was using to stitch faces (averaging boundaries). Another curial bit missing: "reshaping" of multires CD_MDISPS to the state of new PBVH grids. The new code is only available when OpenSubdiv modifier is enabled (WITH_OPENSUBDIV_MODIFIER=ON) and with debug value of 128. This is so this WIP code is not interfering with current production machines in the studio. Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D3685 --- source/blender/blenkernel/BKE_subdiv.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/blenkernel/BKE_subdiv.h') diff --git a/source/blender/blenkernel/BKE_subdiv.h b/source/blender/blenkernel/BKE_subdiv.h index 4ebb5d1ac66..09fcce369d4 100644 --- a/source/blender/blenkernel/BKE_subdiv.h +++ b/source/blender/blenkernel/BKE_subdiv.h @@ -66,6 +66,8 @@ typedef enum eSubdivStatsValue { SUBDIV_STATS_SUBDIV_TO_MESH_GEOMETRY, SUBDIV_STATS_EVALUATOR_CREATE, SUBDIV_STATS_EVALUATOR_REFINE, + SUBDIV_STATS_SUBDIV_TO_CCG, + SUBDIV_STATS_SUBDIV_TO_CCG_ELEMENTS, NUM_SUBDIV_STATS_VALUES, } eSubdivStatsValue; @@ -86,6 +88,10 @@ typedef struct SubdivStats { double evaluator_creation_time; /* Time spent on evaluator->refine(). */ double evaluator_refine_time; + /* Total time spent on whole CCG creation. */ + double subdiv_to_ccg_time; + /* Time spent on CCG elements evaluation/initialization. */ + double subdiv_to_ccg_elements_time; }; double values_[NUM_SUBDIV_STATS_VALUES]; }; -- cgit v1.2.3