From 76206543e83661bbf04ee046b10b27736c589c81 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sun, 25 Jan 2009 04:34:00 +0000 Subject: * Adds console command, 'predecode-j2k ' to load all of the texture assets from the scene and decode the j2k layer data to cache. The work is split between the number of threads you specify. A good number of threads value is the number of cores on your machine minus 1. * Increases the number of ImageDataPackets we send per PriorityQueue pop and tweak it so that the number of packets is ( (2 * decode level) + 1 ) * 2, and (((2 * (5-decode level)) + 1) * 2). The first one sends more data for low quality textures, the second one sends more data for high quality textures. --- OpenSim/Region/Application/OpenSim.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'OpenSim/Region/Application/OpenSim.cs') diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 3db7176..802adcd 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs @@ -496,6 +496,16 @@ namespace OpenSim case "reset": Reset(cmdparams); break; + case "predecode-j2k": + if (cmdparams.Length > 0) + { + m_sceneManager.CacheJ2kDecode(Convert.ToInt32(cmdparams[0])); + } + else + { + m_sceneManager.CacheJ2kDecode(1); + } + break; default: string[] tmpPluginArgs = new string[cmdparams.Length + 1]; @@ -688,6 +698,7 @@ namespace OpenSim m_console.Notice("login-enable - Allows login at sim level"); m_console.Notice("login-disable - Disable login at sim level"); m_console.Notice("login-status - Show the actual login status"); + m_console.Notice("predecode-j2k - Precache assets,decode j2k layerdata, First parameter is threads to use"); ShowPluginCommandsHelp(CombineParams(helpArgs, 0), m_console); -- cgit v1.1