From e7e6a79f8bf2855b5d1d432613151e48d2d685da Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sat, 14 May 2011 23:22:05 +0200 Subject: Implemented terrain chunk caching. --- scene.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scene.cpp') 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); -- cgit v1.2.3