diff options
author | UbitUmarov | 2012-09-17 17:49:10 +0100 |
---|---|---|
committer | UbitUmarov | 2012-09-17 17:49:10 +0100 |
commit | 1740325392f9771e629ca290a608f26df85fb169 (patch) | |
tree | b6dd7b2518e6a05956bc3b14184242561eebc0ea /OpenSim/Region/ClientStack | |
parent | let mesh model estimator work even without money module, so other (diff) | |
download | opensim-SC_OLD-1740325392f9771e629ca290a608f26df85fb169.zip opensim-SC_OLD-1740325392f9771e629ca290a608f26df85fb169.tar.gz opensim-SC_OLD-1740325392f9771e629ca290a608f26df85fb169.tar.bz2 opensim-SC_OLD-1740325392f9771e629ca290a608f26df85fb169.tar.xz |
removed broken fee compression
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs | 16 |
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 | } |