aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application
diff options
context:
space:
mode:
authorTeravus Ovares2009-01-25 04:34:00 +0000
committerTeravus Ovares2009-01-25 04:34:00 +0000
commit76206543e83661bbf04ee046b10b27736c589c81 (patch)
tree0379cb3411bfea0e8348092de8d4d50f30fb9934 /OpenSim/Region/Application
parentUpdate svn properties. (diff)
downloadopensim-SC_OLD-76206543e83661bbf04ee046b10b27736c589c81.zip
opensim-SC_OLD-76206543e83661bbf04ee046b10b27736c589c81.tar.gz
opensim-SC_OLD-76206543e83661bbf04ee046b10b27736c589c81.tar.bz2
opensim-SC_OLD-76206543e83661bbf04ee046b10b27736c589c81.tar.xz
* Adds console command, 'predecode-j2k <number of threads>' 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.
Diffstat (limited to 'OpenSim/Region/Application')
-rw-r--r--OpenSim/Region/Application/OpenSim.cs11
1 files changed, 11 insertions, 0 deletions
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
496 case "reset": 496 case "reset":
497 Reset(cmdparams); 497 Reset(cmdparams);
498 break; 498 break;
499 case "predecode-j2k":
500 if (cmdparams.Length > 0)
501 {
502 m_sceneManager.CacheJ2kDecode(Convert.ToInt32(cmdparams[0]));
503 }
504 else
505 {
506 m_sceneManager.CacheJ2kDecode(1);
507 }
508 break;
499 509
500 default: 510 default:
501 string[] tmpPluginArgs = new string[cmdparams.Length + 1]; 511 string[] tmpPluginArgs = new string[cmdparams.Length + 1];
@@ -688,6 +698,7 @@ namespace OpenSim
688 m_console.Notice("login-enable - Allows login at sim level"); 698 m_console.Notice("login-enable - Allows login at sim level");
689 m_console.Notice("login-disable - Disable login at sim level"); 699 m_console.Notice("login-disable - Disable login at sim level");
690 m_console.Notice("login-status - Show the actual login status"); 700 m_console.Notice("login-status - Show the actual login status");
701 m_console.Notice("predecode-j2k - Precache assets,decode j2k layerdata, First parameter is threads to use");
691 702
692 ShowPluginCommandsHelp(CombineParams(helpArgs, 0), m_console); 703 ShowPluginCommandsHelp(CombineParams(helpArgs, 0), m_console);
693 704