History

Adding counters, not sure they are really useful or that this is the best way to do this...

samcake committed 10 years ago

Commit 042a4191 parent 816a3503 files · +58 −2Browse files

Showing the changes to libraries/render-utils/src/RenderDeferredTask.cpp (1 of 3 files). Show all

Unified · Split

libraries/render-utils/src/RenderDeferredTask.cpp+5−0
@@ -45,7 +45,12 @@ void PrepareDeferred::run(const SceneContextPointer& sceneContext, const RenderC · 44 unmodified lines
4545 }
4646
4747 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+
4851 DependencyManager::get<DeferredLightingEffect>()->render(renderContext);
52+
53+ config->setCPUTiming(_cpuTimer.elapsed());
4954 }
5055
5156 RenderDeferredTask::RenderDeferredTask(CullFunctor cullFunctor) {