24c5fada6204f0770de989b712ca48fd2d1aeb1b
"mapmrproper" tries to optimize hidden attributes of maps in a way, that the map can be handled in bigger chunks by the renderer. The mipmapping routine does not take into account, if certain textures of a cube are visible at all, when it collects otherwise identical cubes to be handled en-bloc. "mapmrproper" changes invisible textures in a way, that the cubes are in fact identical - so, that the mipmapper is satisfied. This optimization is a bit too huge for now, to be used by savemap by default (instead of toptimize()) - even though mapmrproper is far superior to toptimize(). Since mapmrproper potentially changes a lot of textures, it may be too annoying during the creation of a map anyway. It is a tool to optimize the map, as soon as the geometry (and texturing) is done. The optimizer does not change any map properties that are visible in any way. The optical effect of slightly changing lighting of the map is caused by the (light-) recalc() function at the end of the optimization run. Every run of recalc() seems to have that effect (check for yourself, by typing /recalc several times). Before any changes are made, mapmrproper creates a backup, which can be restored by "undo" (press "U"). Enable mipstats (F6), to see, what has been done. The command "calcmipstats" just counts all the mips in the current map, and prints their numbers as 1x1/2x2/4x4/8x8/16x16/32x32/64x64. Keep in mind, that map geometry /and/ lighting affects the mipmapping. (To get a better idea of this, try changing the "lighterror" parameter)
…
…
…
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta http-equiv="refresh" content="0; url=docs/index.html">
<meta name="description" content="Documentation index of the game AssaultCube @ http://assault.cubers.net/">
<meta name="author" content="Rabid Viper Productions">
<meta name="copyright" content="You may be able to redistribute this content under specific conditions.
Please read the licensing information, available @ http://assault.cubers.net/docs/license.html for the
conditions that would apply to what you may be redistributing.">
<title>AssaultCube Documentation</title>
<style type="text/css">
body
{
background-color: #222222;
}
</style>
</head>
<body>
<div>
</div>
</body>
</html>
Languages
C
57.9%
C++
27.6%
Shell
11.1%
Python
1.2%
Makefile
1%
Other
1.1%