Cycles: Avoid overhead from RNA when extracting mesh data #106275

Merged
Hans Goudey merged 14 commits from HooglyBoogly/blender:cycles-mesh-cleanup into main 2023-04-03 17:05:10 +02:00
1 changed files with 0 additions and 4 deletions
Showing only changes of commit ef49793adc - Show all commits

View File

@ -952,8 +952,6 @@ static void create_mesh(Scene *scene,
const bool subdivision = false,
const bool subdivide_uvs = true)
{
scoped_timer timer;
const int numverts = b_mesh.vertices.length();
const int polys_num = b_mesh.polygons.length();
int numfaces = (!subdivision) ? b_mesh.loop_triangles.length() : b_mesh.polygons.length();
@ -1158,8 +1156,6 @@ static void create_mesh(Scene *scene,
*tfm = transform_translate(-loc) * transform_scale(size);
}
std::cout << time_human_readable_from_seconds(timer.get_time()) << '\n';
}
static void create_subd_mesh(Scene *scene,