From 554f7f120c4bc99a2c9c944b951662b95a03a9d4 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 18 Oct 2011 13:56:35 +0300 Subject: Improve rendering and fix tiling in mesh generation --- src/clouds.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/clouds.cpp') diff --git a/src/clouds.cpp b/src/clouds.cpp index d754cc15e..8981b42d9 100644 --- a/src/clouds.cpp +++ b/src/clouds.cpp @@ -21,6 +21,8 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "noise.h" #include "constants.h" #include "debug.h" +#include "profiler.h" +#include "main.h" // For g_profiler Clouds::Clouds( scene::ISceneNode* parent, @@ -76,6 +78,8 @@ void Clouds::render() if(SceneManager->getSceneNodeRenderPass() != scene::ESNRP_SOLID) return; + ScopeProfiler sp(g_profiler, "Rendering of clouds, avg", SPT_AVG); + driver->setTransform(video::ETS_WORLD, AbsoluteTransformation); driver->setMaterial(m_material); -- cgit v1.2.3