Showing the changes to libraries/render-utils/src/RenderDeferredTask.cpp (1 of 5 files). Show all
Unified · Split
| @@ -12,8 +12,6 @@ · 11 unmodified lines | ||
| 12 | 12 | |
| 13 | 13 | #include "RenderDeferredTask.h" |
| 14 | 14 | |
| 15 | −#include <QElapsedTimer> | |
| 16 | − | |
| 17 | 15 | #include <PerfStat.h> |
| 18 | 16 | #include <PathUtils.h> |
| 19 | 17 | #include <RenderArgs.h> |
| @@ -47,13 +45,7 @@ void PrepareDeferred::run(const SceneContextPointer& sceneContext, const RenderC · 27 unmodified lines | ||
| 47 | 45 | } |
| 48 | 46 | |
| 49 | 47 | void RenderDeferred::run(const SceneContextPointer& sceneContext, const RenderContextPointer& renderContext) { |
| 50 | − QElapsedTimer cpuTimer; | |
| 51 | − cpuTimer.start(); | |
| 52 | − auto config = std::static_pointer_cast<Config>(renderContext->jobConfig); | |
| 53 | − | |
| 54 | 48 | DependencyManager::get<DeferredLightingEffect>()->render(renderContext); |
| 55 | − | |
| 56 | − config->setStats(cpuTimer.elapsed()); | |
| 57 | 49 | } |
| 58 | 50 | |
| 59 | 51 | RenderDeferredTask::RenderDeferredTask(CullFunctor cullFunctor) { |
| @@ -183,8 +175,6 @@ void RenderDeferredTask::run(const SceneContextPointer& sceneContext, const Rend · 123 unmodified lines | ||
| 183 | 175 | void DrawDeferred::run(const SceneContextPointer& sceneContext, const RenderContextPointer& renderContext, const ItemBounds& inItems) { |
| 184 | 176 | assert(renderContext->args); |
| 185 | 177 | assert(renderContext->args->_viewFrustum); |
| 186 | − QElapsedTimer cpuTimer; | |
| 187 | − cpuTimer.start(); | |
| 188 | 178 | |
| 189 | 179 | auto config = std::static_pointer_cast<Config>(renderContext->jobConfig); |
| 190 | 180 | |
| @@ -207,7 +197,7 @@ void DrawDeferred::run(const SceneContextPointer& sceneContext, const RenderCont · 16 unmodified lines | ||
| 207 | 197 | args->_batch = nullptr; |
| 208 | 198 | }); |
| 209 | 199 | |
| 210 | − config->setStats((int)inItems.size(), cpuTimer.elapsed()); | |
| 200 | + config->setNumDrawn((int)inItems.size()); | |
| 211 | 201 | } |
| 212 | 202 | |
| 213 | 203 | DrawOverlay3D::DrawOverlay3D(bool opaque) : |