Intel® Embree Ray Tracing Kernels
Discussion forum on the open source ray tracing kernels for fast photo-realistic rendering on Intel® CPUs.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

bvh statistic

ritwik_d_
Beginner
143 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
143 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

1 Reply
SvenW_Intel
Moderator
144 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.

Reply