Implement experimental non-default mechanism to update scene via a timer rather than a persistent thread with sleep.

This is to see if an inaccuracy in sleep times under load is responsible for increase in frame times even when there is spare time still available.
Can currently only be activated by setting "debug scene set update-on-timer true".
Can be switched between timer and thread with sleep updates whilst the scene is running.
This commit is contained in:
Justin Clark-Casey (justincc)
2014-08-26 17:37:18 +01:00
parent aeadddf77a
commit 64f640f901
4 changed files with 113 additions and 67 deletions

View File

@@ -196,7 +196,8 @@ namespace OpenSim.Region.Framework.Scenes
/// Number of frames to update. Exits on shutdown even if there are frames remaining.
/// If -1 then updates until shutdown.
/// </param>
public abstract void Update(int frames);
/// <returns>true if update completed within minimum frame time, false otherwise.</returns>
public abstract bool Update(int frames);
#endregion