On-screen Profiler / Debug visualizations in progress

Fixed a bug that caused framerate to drop drastically by executing an additional render pass.
This commit is contained in:
2013-03-21 19:58:35 -07:00
parent 98df6e7e87
commit a23b39a178
24 changed files with 147 additions and 42 deletions

View File

@@ -225,7 +225,7 @@ void KRAudioSource::render(KRCamera *pCamera, std::vector<KRLight *> &lights, co
std::vector<KRMesh *> sphereModels = getContext().getModelManager()->getModel("__sphere");
if(sphereModels.size()) {
for(int i=0; i < sphereModels[0]->getSubmeshCount(); i++) {
sphereModels[0]->renderSubmesh(i);
sphereModels[0]->renderSubmesh(i, renderPass, getName(), "visualize_overlay");
}
}