mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-26 17:12:17 +00:00
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:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user