MCPcopy Index your code
hub / github.com/ad-si/LuaCAD / chooseDepthComplexityAlgorithm

Function chooseDepthComplexityAlgorithm

OpenCSG/src/opencsgRender.cpp:46–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 }
45
46 DepthComplexityAlgorithm chooseDepthComplexityAlgorithm(const std::vector<Primitive*>& primitives) {
47 if (!haveHardwareOcclusionQueries() && primitives.size() > 40) {
48 return DepthComplexitySampling;
49 }
50
51 if (haveHardwareOcclusionQueries() && primitives.size() > 20) {
52 return OcclusionQuery;
53 }
54
55 return NoDepthComplexitySampling;
56 }
57
58 } // unnamed namespace
59

Callers 1

renderDispatchFunction · 0.85

Calls 2

sizeMethod · 0.45

Tested by

no test coverage detected