Showing the changes to libraries/render-utils/src/RenderDeferredTask.cpp (1 of 2 files). Show all
Unified · Split
| @@ -104,27 +104,10 @@ void RenderDeferredTask::run(const SceneContextPointer& sceneContext, const Rend · 103 unmodified lines | ||
| 104 | 104 | |
| 105 | 105 | renderContext->args->_context->syncCache(); |
| 106 | 106 | |
| 107 | − // start the current timer query | |
| 108 | − auto& currentQuery = _timerQueries[_currentTimerQueryIndex]; | |
| 109 | − { | |
| 110 | − gpu::Batch batch; | |
| 111 | − batch.beginQuery(currentQuery); | |
| 112 | − renderContext->args->_context->render(batch); | |
| 113 | − } | |
| 114 | − | |
| 115 | 107 | for (auto job : _jobs) { |
| 116 | 108 | job.run(sceneContext, renderContext); |
| 117 | 109 | } |
| 118 | 110 | |
| 119 | − // End the current timer query | |
| 120 | − { | |
| 121 | − gpu::Batch batch; | |
| 122 | − batch.endQuery(currentQuery); | |
| 123 | − batch.getQuery(currentQuery); | |
| 124 | − renderContext->args->_context->render(batch); | |
| 125 | − (_currentTimerQueryIndex++); | |
| 126 | − _currentTimerQueryIndex = _currentTimerQueryIndex% _timerQueries.size(); | |
| 127 | − } | |
| 128 | 111 | }; |
| 129 | 112 | |
| 130 | 113 | void DrawOpaqueDeferred::run(const SceneContextPointer& sceneContext, const RenderContextPointer& renderContext, const ItemIDsBounds& inItems) { |