| 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) |