|
EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
|
What a render saw. More...
#include <EBGeometry_Render.hpp>
Public Attributes | |
| uint64_t | m_rays = 0 |
| Rays cast from the camera. | |
| uint64_t | m_hits = 0 |
| Rays that hit the shape. | |
| uint64_t | m_insideHits = 0 |
| Rays that hit the shape's surface from inside the solid (drawn tinted). | |
| uint64_t | m_unresolved = 0 |
| Rays whose march ran out of steps (drawn as misses; see HitStatus::Unresolved). | |
| bool | m_cameraInside = false |
| Whether the eye is inside the solid: everything it sees is then seen from inside. | |
| bool | m_complete = true |
| Whether every pixel was rendered: false when the render was canceled (see Renderer::render()). | |
| CostUnit | m_costUnit = CostUnit::None |
| The unit of m_costLow and m_costHigh: nanoseconds on the host, clock cycles on a device, None outside the cost views. | |
| double | m_costLow = 0.0 |
| In ViewMode::CostHit and ViewMode::CostCrossing, the cost (in m_costUnit) of a pixel's ray (one per pixel) that takes the darkest color: the cheapest but for the frame's cheapest hundredth of pixels, which take it too. | |
| double | m_costHigh = 0.0 |
| The cost (in m_costUnit) of a pixel that takes the brightest color: the dearest but for the frame's dearest hundredth, which take it too. | |
| double | m_raysPerSecond = 0.0 |
| In ViewMode::CostHit and ViewMode::CostCrossing, the frame's rays per second: the rays of the pixels reached (all of them, m_rays, unless the render was canceled) over the time the tracing took, from the first ray started to the last finished, on the host's threads or the device. It leaves out the rest of a render (allocating the device's buffers, copying the image back, coloring it), so it measures the tracer, not what a caller of render() waits for. 0 in the other views. | |
What a render saw.
| double EBGeometry::Render::Stats::m_costLow = 0.0 |
In ViewMode::CostHit and ViewMode::CostCrossing, the cost (in m_costUnit) of a pixel's ray (one per pixel) that takes the darkest color: the cheapest but for the frame's cheapest hundredth of pixels, which take it too.
On the host a pixel's cost is its ray's own time. On a device it is the clock cycles that passed while its thread traced it: the threads of a warp step together, so it includes waiting for the warp's slowest ray, and the cycles the device spent on other warps, so that it is more than the ray's cost, and alike across each warp's pixels (blocks of 32 along a row). The cycles are not converted to time: a device does not run at the clock rate it reports (its boost clock varies), so a time would look more precise than it is.