History

added some timing debugging

ZappoMan committed 13 years ago

Commit 5f6fb3a1 parent 30019177 files · +71 −8Browse files

Showing the changes to interface/src/VoxelSystem.cpp (1 of 7 files). Show all

Unified · Split

interface/src/VoxelSystem.cpp+4−0
@@ -1077,6 +1077,8 @@ void VoxelSystem::render(bool texture) { · 1076 unmodified lines
10771077 updateVBOs();
10781078
10791079 if (_useVoxelShader) {
1080+ PerformanceWarning warn(Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings),
1081+ "render().. _useVoxelShader openGL..");
10801082
10811083 Application::getInstance()->getVoxelShader().begin();
10821084
@@ -1106,6 +1108,8 @@ void VoxelSystem::render(bool texture) { · 23 unmodified lines
11061108 Application::getInstance()->getVoxelShader().end();
11071109
11081110 } else {
1111+ PerformanceWarning warn(Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings), "render().. openGL...");
1112+
11091113 // tell OpenGL where to find vertex and color information
11101114 glEnableClientState(GL_VERTEX_ARRAY);
11111115 glEnableClientState(GL_COLOR_ARRAY);