mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
Add MaxPrimsUndo config setting to [Startup] section of OpenSim.ini.
This controls how many undo steps the simulator will store for each prim. Default is now 20 rather than 5 as it briefly was. The default number could be increased through this is a memory tradeoff which will scale with the number of prims in the sim and level of activity.
This commit is contained in:
@@ -52,6 +52,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
Vector3 secondSize = new Vector3(5, 6, 7);
|
||||
|
||||
Scene scene = new SceneHelpers().SetupScene();
|
||||
scene.MaxUndoCount = 20;
|
||||
SceneObjectGroup g1 = SceneHelpers.AddSceneObject(scene);
|
||||
|
||||
// TODO: It happens to be the case that we are not storing undo states for SOPs which are not yet in a SOG,
|
||||
@@ -113,6 +114,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
Vector3 fourthSize = new Vector3(11, 12, 13);
|
||||
|
||||
Scene scene = new SceneHelpers().SetupScene();
|
||||
scene.MaxUndoCount = 20;
|
||||
SceneObjectGroup g1 = SceneHelpers.CreateSceneObject(1, TestHelpers.ParseTail(0x1));
|
||||
|
||||
g1.GroupResize(firstSize);
|
||||
@@ -133,6 +135,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
Vector3 newSize = new Vector3(2, 3, 4);
|
||||
|
||||
Scene scene = new SceneHelpers().SetupScene();
|
||||
scene.MaxUndoCount = 20;
|
||||
SceneObjectGroup g1 = SceneHelpers.AddSceneObject(scene);
|
||||
Vector3 originalSize = g1.GroupScale;
|
||||
|
||||
@@ -160,6 +163,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
Vector3 newSize = new Vector3(2, 3, 4);
|
||||
|
||||
Scene scene = new SceneHelpers().SetupScene();
|
||||
scene.MaxUndoCount = 20;
|
||||
SceneObjectGroup g1 = SceneHelpers.AddSceneObject(scene);
|
||||
Vector3 originalSize = g1.GroupScale;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user