History

more work on batch optimzation

Brad Hefta-Gaub committed 11 years ago

Commit 85b23221 parent b2bbaf413 files · +142 −116Browse files

Showing the changes to libraries/input-plugins/src/input-plugins/ViveControllerManager.cpp (1 of 13 files). Show all

Unified · Split

libraries/input-plugins/src/input-plugins/ViveControllerManager.cpp+1−1
@@ -173,7 +173,7 @@ void ViveControllerManager::updateRendering(RenderArgs* args, render::ScenePoint · 172 unmodified lines
173 UserInputMapper::PoseValue leftHand = _poseStateMap[makeInput(JointChannel::LEFT_HAND).getChannel()];173 UserInputMapper::PoseValue leftHand = _poseStateMap[makeInput(JointChannel::LEFT_HAND).getChannel()];
174 UserInputMapper::PoseValue rightHand = _poseStateMap[makeInput(JointChannel::RIGHT_HAND).getChannel()];174 UserInputMapper::PoseValue rightHand = _poseStateMap[makeInput(JointChannel::RIGHT_HAND).getChannel()];
175 175
176 doInBatch(args->_context, [=](gpu::Batch& batch) {176 gpu::doInBatch(args->_context, [=](gpu::Batch& batch) {
177 auto geometryCache = DependencyManager::get<GeometryCache>();177 auto geometryCache = DependencyManager::get<GeometryCache>();
178 geometryCache->useSimpleDrawPipeline(batch);178 geometryCache->useSimpleDrawPipeline(batch);
179 DependencyManager::get<DeferredLightingEffect>()->bindSimpleProgram(batch, true);179 DependencyManager::get<DeferredLightingEffect>()->bindSimpleProgram(batch, true);