MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / StartLockLess

Method StartLockLess

src/slg/engines/rtpathocl/rtpathocl.cpp:51–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void RTPathOCLRenderEngine::StartLockLess() {
52 //--------------------------------------------------------------------------
53 // Rendering parameters
54 //--------------------------------------------------------------------------
55
56 // Disable denoiser statistics collection
57 film->GetDenoiser().SetEnabled(false);
58
59 const Properties &cfg = renderConfig->cfg;
60
61 previewResolutionReduction = RoundUpPow2(Min(Max(1, cfg.Get(GetDefaultProps().Get("rtpath.resolutionreduction.preview")).Get<int>()), 64));
62 previewResolutionReductionStep = Min(Max(1, cfg.Get(GetDefaultProps().Get("rtpath.resolutionreduction.preview.step")).Get<int>()), 64);
63
64 resolutionReduction = RoundUpPow2(Min(Max(1, cfg.Get(GetDefaultProps().Get("rtpath.resolutionreduction")).Get<int>()), 64));
65
66 TilePathOCLRenderEngine::StartLockLess();
67
68 // Force to use only 1 tile for each device
69 maxTilePerDevice = 1;
70
71 tileRepository->enableRenderingDonePrint = false;
72 frameCounter = 0;
73
74 // To synchronize the start of all threads
75 frameBarrier->wait();
76}
77
78void RTPathOCLRenderEngine::StopLockLess() {
79 frameBarrier->wait();

Callers

nothing calls this directly

Calls 6

RoundUpPow2Function · 0.85
MinFunction · 0.85
MaxFunction · 0.85
SetEnabledMethod · 0.80
Get<int>Method · 0.80
GetMethod · 0.80

Tested by

no test coverage detected