Experimental decoded sculpt map caching

This commit is contained in:
Dahlia Trimble
2009-05-29 02:46:35 +00:00
parent 1e9cb2f8fc
commit db4f8d1298
3 changed files with 55 additions and 20 deletions

View File

@@ -2967,8 +2967,12 @@ namespace OpenSim.Region.Framework.Scenes
{
if (part.Shape.SculptEntry && part.Shape.SculptTexture != UUID.Zero)
{
m_scene.AssetService.Get(
part.Shape.SculptTexture.ToString(), part, AssetReceived);
// check if a previously decoded sculpt map has been cached
if (File.Exists(System.IO.Path.Combine("j2kDecodeCache", "smap_" + part.Shape.SculptTexture.ToString())))
part.SculptTextureCallback(part.Shape.SculptTexture, null);
else
m_scene.AssetService.Get(
part.Shape.SculptTexture.ToString(), part, AssetReceived);
}
}
}