summaryrefslogtreecommitdiff
path: root/indra/llimage/llimagej2c.cpp
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2012-05-08 10:16:14 -0700
committerMerov Linden <merov@lindenlab.com>2012-05-08 10:16:14 -0700
commit5c11b6b2e59ea8042d8dac6071b8be4c81293889 (patch)
tree5030b0b06c8719b11976ec311f35ece94e2d3bd0 /indra/llimage/llimagej2c.cpp
parent681c5de92bd09622de360818682240b0a17403f7 (diff)
SH-3047 : Tweak of the performance compression data gathering code
Diffstat (limited to 'indra/llimage/llimagej2c.cpp')
-rwxr-xr-xindra/llimage/llimagej2c.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llimage/llimagej2c.cpp b/indra/llimage/llimagej2c.cpp
index 4435e0d2a4..452aad25cb 100755
--- a/indra/llimage/llimagej2c.cpp
+++ b/indra/llimage/llimagej2c.cpp
@@ -464,6 +464,7 @@ LLImageCompressionTester::LLImageCompressionTester() : LLMetricPerformanceTester
addMetric("Perf Compression (kB/s)");
mRunBytesInDecompression = 0;
+ mRunBytesOutDecompression = 0;
mRunBytesInCompression = 0;
mTotalBytesInDecompression = 0;
@@ -556,13 +557,16 @@ void LLImageCompressionTester::updateDecompressionStats(const S32 bytesIn, const
mTotalBytesInDecompression += bytesIn;
mRunBytesInDecompression += bytesIn;
mTotalBytesOutDecompression += bytesOut;
+ mRunBytesOutDecompression += bytesOut;
//if (mRunBytesInDecompression > (1000000))
- if ((mTotalTimeDecompression - mRunTimeDecompression) >= (5.0f))
+ if (mRunBytesOutDecompression > (10000000))
+ //if ((mTotalTimeDecompression - mRunTimeDecompression) >= (5.0f))
{
// Output everything
outputTestResults();
// Reset the decompression data of the run
mRunBytesInDecompression = 0;
+ mRunBytesOutDecompression = 0;
mRunTimeDecompression = mTotalTimeDecompression;
}
}