diff options
author | Justin Clark-Casey (justincc) | 2012-06-05 00:27:51 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-06-05 00:27:51 +0100 |
commit | 96d1ba90d7f801c779924ea04656d0fb53ea9d32 (patch) | |
tree | 341c1462bf49de02e1fbecf942e1f58347969466 /OpenSim/Region/Framework/Scenes | |
parent | Start sending spare frame time MS viewer stat. Make frame time correctly dis... (diff) | |
download | opensim-SC_OLD-96d1ba90d7f801c779924ea04656d0fb53ea9d32.zip opensim-SC_OLD-96d1ba90d7f801c779924ea04656d0fb53ea9d32.tar.gz opensim-SC_OLD-96d1ba90d7f801c779924ea04656d0fb53ea9d32.tar.bz2 opensim-SC_OLD-96d1ba90d7f801c779924ea04656d0fb53ea9d32.tar.xz |
Scale down per frame MS stats to match scaled simulator FPS stat.
This makes frame time stats properly tally with fps, which saves confusion and makes it easier to interpret numbers.
In some ways this is not so artifical - physics FPS runs at the higher rate.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SimStatsReporter.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs index 88e0b05..742d42a 100644 --- a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs +++ b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs | |||
@@ -320,7 +320,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
320 | // values to X-per-second values. | 320 | // values to X-per-second values. |
321 | 321 | ||
322 | uint thisFrame = m_scene.Frame; | 322 | uint thisFrame = m_scene.Frame; |
323 | float framesUpdated = (float)(thisFrame - m_lastUpdateFrame); | 323 | float framesUpdated = (float)(thisFrame - m_lastUpdateFrame) * m_reportedFpsCorrectionFactor; |
324 | m_lastUpdateFrame = thisFrame; | 324 | m_lastUpdateFrame = thisFrame; |
325 | 325 | ||
326 | // Avoid div-by-zero if somehow we've not updated any frames. | 326 | // Avoid div-by-zero if somehow we've not updated any frames. |