diff options
author | Brad Linden <brad@lindenlab.com> | 2024-09-04 12:51:24 -0700 |
---|---|---|
committer | Brad Linden <brad@lindenlab.com> | 2024-09-04 12:51:24 -0700 |
commit | 49abe2c8bc23e306d304d02704e2b883648baea6 (patch) | |
tree | bb07d3fce7de85e22c4f59abff2ea65d031fcd69 /indra/newview/llviewerstats.cpp | |
parent | c2724537adab9d31c23d33e36002772a9c56f4c3 (diff) | |
parent | d5446b3bcd34ad63b1d120f34c2a4d234262fd38 (diff) |
Merge remote-tracking branch 'origin/release/2024.08-DeltaFPS' into develop
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 3641738d9d..73aabf49d1 100644 --- a/indra/newview/llviewerstats.cpp +++ b/indra/newview/llviewerstats.cpp @@ -541,6 +541,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(); |