MCPcopy Create free account
hub / github.com/RenderKit/embree / preBuild

Method preBuild

kernels/bvh/bvh.cpp:113–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111
112 template<int N>
113 double BVHN<N>::preBuild(const std::string& builderName)
114 {
115 if (builderName == "")
116 return inf;
117
118 if (device->verbosity(2))
119 {
120 Lock<MutexSys> lock(g_printMutex);
121 std::cout << "building BVH" << N << (builderName.find("MBlur") != std::string::npos ? "MB" : "") << "<" << primTy->name() << "> using " << builderName << " ..." << std::endl << std::flush;
122 }
123
124 double t0 = 0.0;
125 if (device->benchmark || device->verbosity(2)) t0 = getSeconds();
126 return t0;
127 }
128
129 template<int N>
130 void BVHN<N>::postBuild(double t0)

Callers 11

buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80

Calls 4

getSecondsFunction · 0.85
verbosityMethod · 0.45
findMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected