Showing the changes to libraries/render-utils/src/RenderDeferredTask.cpp (1 of 3 files). Show all
Unified · Split
| @@ -45,7 +45,12 @@ void PrepareDeferred::run(const SceneContextPointer& sceneContext, const RenderC · 44 unmodified lines | ||
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | void RenderDeferred::run(const SceneContextPointer& sceneContext, const RenderContextPointer& renderContext) { |
| 48 | + quint64 msecsElapsed = _cpuTimer.restart(); | |
| 49 | + auto config = std::static_pointer_cast<Config>(renderContext->jobConfig); | |
| 50 | + | |
| 48 | 51 | DependencyManager::get<DeferredLightingEffect>()->render(renderContext); |
| 52 | + | |
| 53 | + config->setCPUTiming(_cpuTimer.elapsed()); | |
| 49 | 54 | } |
| 50 | 55 | |
| 51 | 56 | RenderDeferredTask::RenderDeferredTask(CullFunctor cullFunctor) { |