diff options
Diffstat (limited to 'scene.cpp')
-rw-r--r-- | scene.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -315,7 +315,6 @@ void Scene::render() { //const float light_pos[4] = {0, 1, 0, 0}; //glLightfv(GL_LIGHT0, GL_POSITION, light_pos); - unsigned int chunks_rendered = 0; if(render_terrain) { terrain_program.use(); GLint show_sel = glGetUniformLocation(terrain_program.get_program(), "show_sel"); @@ -354,7 +353,6 @@ void Scene::render() { continue; } else if(!chunk->vbo_object) continue;*/ - chunks_rendered++; glPushMatrix(); glTranslatef(-pos.x + chunk->x, -pos.y, -pos.z + chunk->y); if(show_selection) @@ -430,7 +428,7 @@ void Scene::render() { glColor3f(1, 1, 1); glTranslatef(0, video::height-height, 0); font->Render((boost::format("chunks: %d gravity: %d steps: %d") - % chunks_rendered % gravity % steps).str().c_str()); + % terrain->chunks.size() % gravity % steps).str().c_str()); //font->Render((boost::format("%dx%d %d levels %d nodes tree creation time: %f steps: %d update: %d") // % scene.qt->width % scene.qt->height % scene.qt->levels % scene.qt->nodes % scene.qt->init_time % steps % scene.qt->thread_running).str().c_str()); //glTranslatef(0, height, 0); |