Intel® Embree Ray Tracing Kernels
Discussion forum on the open source ray tracing kernels for fast photo-realistic rendering on Intel® CPU(s)

bvh statistic

ritwik_d_
Beginner
285 Views

Is it possible to get the BVH statistics, like total levels, no. of bonding volumes generated, no. of bvh traversals, bvh traversals per ray etc. I am trying benchmark the performance of a few other algorithms.

Thanks

0 Kudos
1 Solution
SvenW_Intel
Moderator
285 Views

To get BVH statistics do the following:

  Embree 2.0: call rtcSetVerbose(2)

  Embree 2.3.X: call rtcInit("verbose=2")

To get traversal statistics:

  Embree 2.0 and Embree 2.3: Enable USE_STAT_COUNTERS in cmake (might have to press 't' to get into advanced settings) will enable some internal counters. Call rtcDebug to print the values of these counters. These counters are not thread safe, thus render using one thread only! Do not forget to disable the USE_STAT_COUNTERS again later, as it can be quite expensive on a machine with many cores.

View solution in original post

0 Kudos
1 Reply
SvenW_Intel
Moderator
286 Views

To get BVH statistics do the following:

  Embree 2.0: call rtcSetVerbose(2)

  Embree 2.3.X: call rtcInit("verbose=2")

To get traversal statistics:

  Embree 2.0 and Embree 2.3: Enable USE_STAT_COUNTERS in cmake (might have to press 't' to get into advanced settings) will enable some internal counters. Call rtcDebug to print the values of these counters. These counters are not thread safe, thus render using one thread only! Do not forget to disable the USE_STAT_COUNTERS again later, as it can be quite expensive on a machine with many cores.

0 Kudos
Reply