diff options
author | Erik Kundiman <erik@megapahit.org> | 2024-09-07 17:46:04 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2024-09-07 17:46:04 +0800 |
commit | a742349cabd97b42e61e1b445f79840407cb3479 (patch) | |
tree | 6d6f043f53cd3d7b9bf004e543932a86cb89ad7c /indra/newview/llviewerstats.cpp | |
parent | 895e2decd591ce8ab3cfcdce93c8b10447eedbee (diff) | |
parent | 1f754e50908ba325c132b8d83383f7f0dbbdf793 (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.cpp | 3 |
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(); |