Skip to content

Commit eaceaa5

Browse files
committed
Fix stutter issues
1 parent 81e65d0 commit eaceaa5

File tree

3 files changed

+264
-394
lines changed

3 files changed

+264
-394
lines changed

Core/Game/Managers/LockstepManager.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,6 @@ namespace Lockstep
3333
//TODO: Set up default functions to implement LSManager
3434
public static class LockstepManager
3535
{
36-
public static readonly System.Diagnostics.Stopwatch SimulationTimer = new System.Diagnostics.Stopwatch ();
37-
38-
/// <summary>
39-
/// Seconds since start if the last session.
40-
/// </summary>
41-
/// <value>The seconds.</value>
42-
public static double Seconds { get { return SimulationTimer.ElapsedTicks / (double)System.TimeSpan.TicksPerSecond; } }
4336

4437
public static MonoBehaviour UnityInstance { get; private set; }
4538

@@ -171,9 +164,7 @@ internal static void Initialize (GameManager gameManager)
171164

172165

173166
DefaultMessageRaiser.EarlyInitialize ();
174-
SimulationTimer.Stop ();
175-
SimulationTimer.Reset ();
176-
SimulationTimer.Start ();
167+
177168
LSDatabaseManager.Initialize ();
178169
LSUtility.Initialize (1);
179170
InfluenceCount = 0;

0 commit comments

Comments
 (0)