| 49 | } |
| 50 | |
| 51 | void 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 | |
| 78 | void RTPathOCLRenderEngine::StopLockLess() { |
| 79 | frameBarrier->wait(); |
nothing calls this directly
no test coverage detected