aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorubit2012-09-17 18:49:56 +0200
committerubit2012-09-17 18:49:56 +0200
commit4336806ddf2a6f4d6509e8b389ce7bfd085a7fe3 (patch)
tree070127cf281326bade61c6d7e2661dbc6b40386e /OpenSim
parentMerge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork (diff)
parentremoved broken fee compression (diff)
downloadopensim-SC_OLD-4336806ddf2a6f4d6509e8b389ce7bfd085a7fe3.zip
opensim-SC_OLD-4336806ddf2a6f4d6509e8b389ce7bfd085a7fe3.tar.gz
opensim-SC_OLD-4336806ddf2a6f4d6509e8b389ce7bfd085a7fe3.tar.bz2
opensim-SC_OLD-4336806ddf2a6f4d6509e8b389ce7bfd085a7fe3.tar.xz
Merge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs16
1 files changed, 1 insertions, 15 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs
index 0b5d3fa..622a2d9 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs
@@ -42,10 +42,6 @@ namespace OpenSim.Region.ClientStack.Linden
42 const float physMeshSizeWth = 6f; // counts 7x 42 const float physMeshSizeWth = 6f; // counts 7x
43 const float physHullSizeWth = 8f; // counts 9x 43 const float physHullSizeWth = 8f; // counts 9x
44 44
45 // price compression to promote complex meshs
46 const float feeCompressionBase = 50.0f; // transition from linear to log cost
47 const float feeCompressionScale = 250.0f; // 10000 scales to 1000
48
49 // stream cost size factors 45 // stream cost size factors
50 const float highLodFactor = 17.36f; 46 const float highLodFactor = 17.36f;
51 const float midLodFactor = 277.78f; 47 const float midLodFactor = 277.78f;
@@ -373,17 +369,7 @@ namespace OpenSim.Region.ClientStack.Linden
373 369
374 // bytes to money 370 // bytes to money
375 sfee *= bytecost; 371 sfee *= bytecost;
376 372
377 // fee compression
378 if (sfee > feeCompressionBase)
379 {
380 sfee -= feeCompressionBase;
381 sfee = feeCompressionScale * (float)Math.Log10((double)sfee);
382 sfee += feeCompressionBase;
383 }
384
385
386
387 cost.costFee = sfee; 373 cost.costFee = sfee;
388 return true; 374 return true;
389 } 375 }