diff options
Diffstat (limited to 'linden/indra/newview/llviewerstats.cpp')
-rw-r--r-- | linden/indra/newview/llviewerstats.cpp | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/linden/indra/newview/llviewerstats.cpp b/linden/indra/newview/llviewerstats.cpp index edefb57..c429e90 100644 --- a/linden/indra/newview/llviewerstats.cpp +++ b/linden/indra/newview/llviewerstats.cpp | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2002&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2002&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2002-2008, Linden Research, Inc. | 7 | * Copyright (c) 2002-2009, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -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" |
@@ -561,15 +562,12 @@ void update_statistics(U32 frame_count) | |||
561 | LLViewerStats::getInstance()->mAssetKBitStat.addValue(gTransferManager.getTransferBitsIn(LLTCT_ASSET)/1024.f); | 562 | LLViewerStats::getInstance()->mAssetKBitStat.addValue(gTransferManager.getTransferBitsIn(LLTCT_ASSET)/1024.f); |
562 | gTransferManager.resetTransferBitsIn(LLTCT_ASSET); | 563 | gTransferManager.resetTransferBitsIn(LLTCT_ASSET); |
563 | 564 | ||
564 | static S32 tex_bits_idle_count = 0; | 565 | if (LLAppViewer::getTextureFetch()->getNumRequests() == 0) |
565 | if (LLViewerImageList::sTextureBits == 0) | ||
566 | { | 566 | { |
567 | if (++tex_bits_idle_count >= 30) | 567 | gDebugTimers[0].pause(); |
568 | gDebugTimers[0].pause(); | ||
569 | } | 568 | } |
570 | else | 569 | else |
571 | { | 570 | { |
572 | tex_bits_idle_count = 0; | ||
573 | gDebugTimers[0].unpause(); | 571 | gDebugTimers[0].unpause(); |
574 | } | 572 | } |
575 | 573 | ||
@@ -679,8 +677,7 @@ void send_stats() | |||
679 | // send fps only for time app spends in foreground | 677 | // send fps only for time app spends in foreground |
680 | agent["fps"] = (F32)gForegroundFrameCount / gForegroundTime.getElapsedTimeF32(); | 678 | agent["fps"] = (F32)gForegroundFrameCount / gForegroundTime.getElapsedTimeF32(); |
681 | agent["version"] = gCurrentVersion; | 679 | agent["version"] = gCurrentVersion; |
682 | std::string language(gSavedSettings.getString("Language")); | 680 | std::string language = LLUI::getLanguage(); |
683 | if(language == "default") language = gSavedSettings.getString("SystemLanguage"); | ||
684 | agent["language"] = language; | 681 | agent["language"] = language; |
685 | 682 | ||
686 | agent["sim_fps"] = ((F32) gFrameCount - gSimFrames) / | 683 | agent["sim_fps"] = ((F32) gFrameCount - gSimFrames) / |
@@ -759,10 +756,17 @@ void send_stats() | |||
759 | // misc["string_2"] = | 756 | // misc["string_2"] = |
760 | // misc["int_1"] = LLFloaterDirectory::sOldSearchCount; // Steve: 1.18.6 | 757 | // misc["int_1"] = LLFloaterDirectory::sOldSearchCount; // Steve: 1.18.6 |
761 | // misc["int_2"] = LLFloaterDirectory::sNewSearchCount; // Steve: 1.18.6 | 758 | // misc["int_2"] = LLFloaterDirectory::sNewSearchCount; // Steve: 1.18.6 |
762 | misc["int_1"] = LLSD::Integer(gSavedSettings.getU32("RenderQualityPerformance")); // Steve: 1.21 | 759 | // misc["int_1"] = LLSD::Integer(gSavedSettings.getU32("RenderQualityPerformance")); // Steve: 1.21 |
763 | misc["int_2"] = LLSD::Integer(gFrameStalls); // Steve: 1.21 | 760 | // misc["int_2"] = LLSD::Integer(gFrameStalls); // Steve: 1.21 |
761 | |||
762 | F32 unbaked_time = LLVOAvatar::sUnbakedTime * 1000.f / gFrameTimeSeconds; | ||
763 | misc["int_1"] = LLSD::Integer(unbaked_time); // Steve: 1.22 | ||
764 | F32 grey_time = LLVOAvatar::sGreyTime * 1000.f / gFrameTimeSeconds; | ||
765 | misc["int_2"] = LLSD::Integer(grey_time); // Steve: 1.22 | ||
766 | |||
767 | llinfos << "Misc Stats: int_1: " << misc["int_1"] << " int_2: " << misc["int_2"] << llendl; | ||
768 | llinfos << "Misc Stats: string_1: " << misc["string_1"] << " string_2: " << misc["string_2"] << llendl; | ||
764 | 769 | ||
765 | LLViewerStats::getInstance()->addToMessage(body); | 770 | LLViewerStats::getInstance()->addToMessage(body); |
766 | |||
767 | LLHTTPClient::post(url, body, new ViewerStatsResponder()); | 771 | LLHTTPClient::post(url, body, new ViewerStatsResponder()); |
768 | } | 772 | } |