From 9391c3ffee4fb722657ebb064f8ba02f1d1f8802 Mon Sep 17 00:00:00 2001 From: dahlia Date: Thu, 7 Oct 2010 19:34:46 -0700 Subject: add a flag in OpenSim.ini.example for enabling/disabling decoded sculpt map caching for meshing --- OpenSim/Region/Physics/Meshing/Meshmerizer.cs | 3 ++- bin/OpenSim.ini.example | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs index 20a5bb4..c97db8c 100644 --- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs +++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs @@ -81,7 +81,8 @@ namespace OpenSim.Region.Physics.Meshing { IConfig start_config = config.Configs["Startup"]; - decodedSculptMapPath = start_config.GetString("DecodedSculptMapPath","j2kDecodeCache"); + decodedSculptMapPath = start_config.GetString("DecodedSculptMapPath","j2kDecodeCache"); + cacheSculptMaps = start_config.GetBoolean("CacheSculptMaps", cacheSculptMaps); try { diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example index 1625de0..91f6068 100644 --- a/bin/OpenSim.ini.example +++ b/bin/OpenSim.ini.example @@ -130,6 +130,14 @@ ;; Usually this is only a box. ; meshing = Meshmerizer ; meshing = ZeroMesher + + ;# {CacheSculptMaps} {Cache decoded sculpt maps?} {true false} true + ;; if you use Meshmerizer and want sculpt map collisions, setting this to + ;; to true will store decoded sculpt maps in a special folder in your bin + ;; folder, which can reduce startup times by reducing asset requests. Some + ;; versions of mono dont work well when reading the cache files, so set this + ;; to false if you have compatability problems. + CacheSculptMaps = false ;; Choose one of the physics engines below ;; OpenDynamicsEngine is by some distance the most developed physics engine -- cgit v1.1