summaryrefslogtreecommitdiff
path: root/scene.cpp
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-05-14 23:22:05 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2011-05-14 23:22:05 +0200
commite7e6a79f8bf2855b5d1d432613151e48d2d685da (patch)
tree147fbe4a4af633427958d1bf1dcbaaaf0c0a1e00 /scene.cpp
parent07ec7829e75a71fa7b70b513f0a2c7daeaea11d5 (diff)
Implemented terrain chunk caching.
Diffstat (limited to 'scene.cpp')
-rw-r--r--scene.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene.cpp b/scene.cpp
index e371f74..f7db5c4 100644
--- a/scene.cpp
+++ b/scene.cpp
@@ -444,8 +444,8 @@ void Scene::render() {
float height = font->LineHeight();
glColor3f(1, 1, 1);
glTranslatef(0, video::height-height, 0);
- font->Render((boost::format("chunks: %d gravity: %d steps: %d")
- % terrain->chunks.size() % gravity % steps).str().c_str());
+ font->Render((boost::format("chunks: %d cache: %d gravity: %d steps: %d")
+ % terrain->chunks.size() % terrain->tc->get_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);