aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/Manager
diff options
context:
space:
mode:
authorUbitUmarov2012-10-13 22:30:34 +0100
committerUbitUmarov2012-10-13 22:30:34 +0100
commit5986b4ee3980d27d6e8524c4b8f5ad4c9a701288 (patch)
treecf0f71097277f93aa3927301aa684672a45a36cc /OpenSim/Region/Physics/Manager
parent retouch mesh ids (diff)
downloadopensim-SC_OLD-5986b4ee3980d27d6e8524c4b8f5ad4c9a701288.zip
opensim-SC_OLD-5986b4ee3980d27d6e8524c4b8f5ad4c9a701288.tar.gz
opensim-SC_OLD-5986b4ee3980d27d6e8524c4b8f5ad4c9a701288.tar.bz2
opensim-SC_OLD-5986b4ee3980d27d6e8524c4b8f5ad4c9a701288.tar.xz
add mesh cache expire on region startup. Expires will be relative to
previus expire (assumed done only once at startup). File 'cntr' on cache folder stores time. Deleting it will force a skip on expire. Default time is 48hours before previus startup to account for failed ones etc.
Diffstat (limited to 'OpenSim/Region/Physics/Manager')
-rw-r--r--OpenSim/Region/Physics/Manager/IMesher.cs1
-rw-r--r--OpenSim/Region/Physics/Manager/ZeroMesher.cs1
2 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/Manager/IMesher.cs b/OpenSim/Region/Physics/Manager/IMesher.cs
index 21a5fa0..ecc2918 100644
--- a/OpenSim/Region/Physics/Manager/IMesher.cs
+++ b/OpenSim/Region/Physics/Manager/IMesher.cs
@@ -41,6 +41,7 @@ namespace OpenSim.Region.Physics.Manager
41 IMesh GetMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical, bool convex); 41 IMesh GetMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical, bool convex);
42 void ReleaseMesh(IMesh mesh); 42 void ReleaseMesh(IMesh mesh);
43 void ExpireReleaseMeshs(); 43 void ExpireReleaseMeshs();
44 void ExpireFileCache();
44 } 45 }
45 46
46 // Values for level of detail to be passed to the mesher. 47 // Values for level of detail to be passed to the mesher.
diff --git a/OpenSim/Region/Physics/Manager/ZeroMesher.cs b/OpenSim/Region/Physics/Manager/ZeroMesher.cs
index 1411165..16846e6 100644
--- a/OpenSim/Region/Physics/Manager/ZeroMesher.cs
+++ b/OpenSim/Region/Physics/Manager/ZeroMesher.cs
@@ -87,5 +87,6 @@ namespace OpenSim.Region.Physics.Manager
87 87
88 public void ReleaseMesh(IMesh mesh) { } 88 public void ReleaseMesh(IMesh mesh) { }
89 public void ExpireReleaseMeshs() { } 89 public void ExpireReleaseMeshs() { }
90 public void ExpireFileCache() { }
90 } 91 }
91} 92}