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

Method initRayStats

tutorials/common/tutorial/tutorial.cpp:616–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614 }
615
616 void TutorialApplication::initRayStats()
617 {
618 if (!g_stats)
619 g_stats = (RayStats*)alignedMalloc(TaskScheduler::threadCount() * sizeof(RayStats), 64);
620
621 for (size_t i = 0; i < TaskScheduler::threadCount(); i++)
622 g_stats[i].numRays = 0;
623 }
624
625 int64_t TutorialApplication::getNumRays()
626 {

Callers 2

renderBenchFuncFunction · 0.80
renderBenchmarkLegacyFunction · 0.80

Calls 1

alignedMallocFunction · 0.85

Tested by

no test coverage detected