diff options
author | Jacek Antonelli | 2009-01-28 20:04:52 -0600 |
---|---|---|
committer | Jacek Antonelli | 2009-01-28 20:05:02 -0600 |
commit | 0ef11cf31364456ec247b0fc7ad8f6d1de408400 (patch) | |
tree | 50754b286468147a70271253a2a74215c80e1354 /linden/indra/newview/llviewerstats.cpp | |
parent | Second Life viewer sources 1.22.5-RC (diff) | |
download | meta-impy-0ef11cf31364456ec247b0fc7ad8f6d1de408400.zip meta-impy-0ef11cf31364456ec247b0fc7ad8f6d1de408400.tar.gz meta-impy-0ef11cf31364456ec247b0fc7ad8f6d1de408400.tar.bz2 meta-impy-0ef11cf31364456ec247b0fc7ad8f6d1de408400.tar.xz |
Second Life viewer sources 1.22.6-RC
Diffstat (limited to 'linden/indra/newview/llviewerstats.cpp')
-rw-r--r-- | linden/indra/newview/llviewerstats.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/linden/indra/newview/llviewerstats.cpp b/linden/indra/newview/llviewerstats.cpp index 111fc14..0b4c0f3 100644 --- a/linden/indra/newview/llviewerstats.cpp +++ b/linden/indra/newview/llviewerstats.cpp | |||
@@ -40,6 +40,7 @@ | |||
40 | #include "llappviewer.h" | 40 | #include "llappviewer.h" |
41 | 41 | ||
42 | #include "pipeline.h" | 42 | #include "pipeline.h" |
43 | #include "lltexturefetch.h" | ||
43 | #include "llviewerobjectlist.h" | 44 | #include "llviewerobjectlist.h" |
44 | #include "llviewerimagelist.h" | 45 | #include "llviewerimagelist.h" |
45 | #include "lltexlayer.h" | 46 | #include "lltexlayer.h" |
@@ -562,15 +563,12 @@ void update_statistics(U32 frame_count) | |||
562 | LLViewerStats::getInstance()->mAssetKBitStat.addValue(gTransferManager.getTransferBitsIn(LLTCT_ASSET)/1024.f); | 563 | LLViewerStats::getInstance()->mAssetKBitStat.addValue(gTransferManager.getTransferBitsIn(LLTCT_ASSET)/1024.f); |
563 | gTransferManager.resetTransferBitsIn(LLTCT_ASSET); | 564 | gTransferManager.resetTransferBitsIn(LLTCT_ASSET); |
564 | 565 | ||
565 | static S32 tex_bits_idle_count = 0; | 566 | if (LLAppViewer::getTextureFetch()->getNumRequests() == 0) |
566 | if (LLViewerImageList::sTextureBits == 0) | ||
567 | { | 567 | { |
568 | if (++tex_bits_idle_count >= 30) | 568 | gDebugTimers[0].pause(); |
569 | gDebugTimers[0].pause(); | ||
570 | } | 569 | } |
571 | else | 570 | else |
572 | { | 571 | { |
573 | tex_bits_idle_count = 0; | ||
574 | gDebugTimers[0].unpause(); | 572 | gDebugTimers[0].unpause(); |
575 | } | 573 | } |
576 | 574 | ||
@@ -761,12 +759,15 @@ void send_stats() | |||
761 | // misc["int_2"] = LLFloaterDirectory::sNewSearchCount; // Steve: 1.18.6 | 759 | // misc["int_2"] = LLFloaterDirectory::sNewSearchCount; // Steve: 1.18.6 |
762 | // misc["int_1"] = LLSD::Integer(gSavedSettings.getU32("RenderQualityPerformance")); // Steve: 1.21 | 760 | // misc["int_1"] = LLSD::Integer(gSavedSettings.getU32("RenderQualityPerformance")); // Steve: 1.21 |
763 | // misc["int_2"] = LLSD::Integer(gFrameStalls); // Steve: 1.21 | 761 | // misc["int_2"] = LLSD::Integer(gFrameStalls); // Steve: 1.21 |
764 | F32 unbaked_time = LLVOAvatar::sUnbakedTime / gFrameTime; | 762 | |
765 | misc["int_1"] = LLSD::Integer(unbaked_time * 1000.f); // Steve: 1.22 | 763 | F32 unbaked_time = LLVOAvatar::sUnbakedTime * 1000.f / gFrameTimeSeconds; |
766 | F32 grey_time = LLVOAvatar::sGreyTime / gFrameTime; | 764 | misc["int_1"] = LLSD::Integer(unbaked_time); // Steve: 1.22 |
767 | misc["int_2"] = LLSD::Integer(grey_time * 1000.f); // Steve: 1.22 | 765 | F32 grey_time = LLVOAvatar::sGreyTime * 1000.f / gFrameTimeSeconds; |
766 | misc["int_2"] = LLSD::Integer(grey_time); // Steve: 1.22 | ||
767 | |||
768 | llinfos << "Misc Stats: int_1: " << misc["int_1"] << " int_2: " << misc["int_2"] << llendl; | ||
769 | llinfos << "Misc Stats: string_1: " << misc["string_1"] << " string_2: " << misc["string_2"] << llendl; | ||
768 | 770 | ||
769 | LLViewerStats::getInstance()->addToMessage(body); | 771 | LLViewerStats::getInstance()->addToMessage(body); |
770 | |||
771 | LLHTTPClient::post(url, body, new ViewerStatsResponder()); | 772 | LLHTTPClient::post(url, body, new ViewerStatsResponder()); |
772 | } | 773 | } |