Sped up minimap rendering by having a separate LOS texture and recomputing only that per frame. To force a recompute of the terrain texture, set g_TerrainModified to true sometime before the render step of each frame (it is set back to false at the end of the frame).

This was SVN commit r2963.
This commit is contained in:
Matei
2005-10-19 03:02:51 +00:00
parent 9ac4ca16ba
commit 2ef8a7b630
4 changed files with 176 additions and 97 deletions
+2
View File
@@ -41,6 +41,7 @@
#endif
extern CConsole* g_Console;
extern bool g_TerrainModified;
// rationale: the function table is now at the end of the source file to
@@ -786,6 +787,7 @@ JSBool setWaterHeight( JSContext* cx, JSObject* UNUSED(globalObject), uint argc,
return( JS_FALSE );
}
g_Renderer.m_WaterHeight = newHeight;
g_TerrainModified = true;
*rval = JSVAL_VOID;
return( JS_TRUE );
}