summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerstats.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2024-09-07 17:46:04 +0800
committerErik Kundiman <erik@megapahit.org>2024-09-07 17:46:04 +0800
commita742349cabd97b42e61e1b445f79840407cb3479 (patch)
tree6d6f043f53cd3d7b9bf004e543932a86cb89ad7c /indra/newview/llviewerstats.cpp
parent895e2decd591ce8ab3cfcdce93c8b10447eedbee (diff)
parent1f754e50908ba325c132b8d83383f7f0dbbdf793 (diff)
Merge remote-tracking branch 'secondlife/release/2024.08-DeltaFPS' into 2024.08-DeltaFPS
Diffstat (limited to 'indra/newview/llviewerstats.cpp')
-rw-r--r--indra/newview/llviewerstats.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llviewerstats.cpp b/indra/newview/llviewerstats.cpp
index b351f3e12f..fcffb96735 100644
--- a/indra/newview/llviewerstats.cpp
+++ b/indra/newview/llviewerstats.cpp
@@ -597,6 +597,9 @@ void send_viewer_stats(bool include_preferences)
agent["run_time"] = run_time;
}
+ // report time the viewer has spent in the foreground
+ agent["foreground_time"] = gForegroundTime.getElapsedTimeF32();
+
// send fps only for time app spends in foreground
agent["fps"] = (F32)gForegroundFrameCount / gForegroundTime.getElapsedTimeF32();
agent["version"] = LLVersionInfo::instance().getChannelAndVersion();