diff options
author | UbitUmarov | 2015-11-13 01:12:37 +0000 |
---|---|---|
committer | UbitUmarov | 2015-11-13 01:12:37 +0000 |
commit | 752a1534f8cea6ad086b4e47ab96b8939664e55d (patch) | |
tree | 6f53c610e2684d0a8e99a263ea7510a033748d4b /OpenSim/Region/Framework/Scenes/Scene.cs | |
parent | Corrections to ini example files for standalones v2 (diff) | |
download | opensim-SC-752a1534f8cea6ad086b4e47ab96b8939664e55d.zip opensim-SC-752a1534f8cea6ad086b4e47ab96b8939664e55d.tar.gz opensim-SC-752a1534f8cea6ad086b4e47ab96b8939664e55d.tar.bz2 opensim-SC-752a1534f8cea6ad086b4e47ab96b8939664e55d.tar.xz |
add the option Normalized55FPS. This is transition code ported from avinationmerge branch. (configration file changes will be commited later)
Diffstat (limited to '')
-rwxr-xr-x | OpenSim/Region/Framework/Scenes/Scene.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index dce2247..cca8963 100755 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -381,6 +381,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
381 | } | 381 | } |
382 | private int m_minFrameTicks; | 382 | private int m_minFrameTicks; |
383 | 383 | ||
384 | // Normalize the frame related stats to nominal 55fps for viewer and scripts option | ||
385 | // see SimStatsReporter.cs | ||
386 | public bool Normalized55FPS { get; private set; } | ||
387 | |||
384 | /// <summary> | 388 | /// <summary> |
385 | /// The minimum length of time in seconds that will be taken for a scene frame. | 389 | /// The minimum length of time in seconds that will be taken for a scene frame. |
386 | /// </summary> | 390 | /// </summary> |
@@ -856,6 +860,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
856 | { | 860 | { |
857 | m_config = config; | 861 | m_config = config; |
858 | MinFrameTicks = 89; | 862 | MinFrameTicks = 89; |
863 | Normalized55FPS = true; | ||
859 | MinMaintenanceTicks = 1000; | 864 | MinMaintenanceTicks = 1000; |
860 | SeeIntoRegion = true; | 865 | SeeIntoRegion = true; |
861 | 866 | ||
@@ -1083,6 +1088,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1083 | 1088 | ||
1084 | if (startupConfig.Contains("MinFrameTime")) | 1089 | if (startupConfig.Contains("MinFrameTime")) |
1085 | MinFrameTicks = (int)(startupConfig.GetFloat("MinFrameTime") * 1000); | 1090 | MinFrameTicks = (int)(startupConfig.GetFloat("MinFrameTime") * 1000); |
1091 | Normalized55FPS = startupConfig.GetBoolean( "Normalized55FPS", Normalized55FPS); | ||
1086 | 1092 | ||
1087 | m_update_backup = startupConfig.GetInt("UpdateStorageEveryNFrames", m_update_backup); | 1093 | m_update_backup = startupConfig.GetInt("UpdateStorageEveryNFrames", m_update_backup); |
1088 | m_update_coarse_locations = startupConfig.GetInt("UpdateCoarseLocationsEveryNFrames", m_update_coarse_locations); | 1094 | m_update_coarse_locations = startupConfig.GetInt("UpdateCoarseLocationsEveryNFrames", m_update_coarse_locations); |