Update TickManager.cs
This commit is contained in:
@ -57,11 +57,11 @@ namespace TickManager
|
|||||||
/// <returns>Whether the application should process the next tick or not</returns>
|
/// <returns>Whether the application should process the next tick or not</returns>
|
||||||
public bool CanTick()
|
public bool CanTick()
|
||||||
{
|
{
|
||||||
double internalMspt = tc.Tick();
|
double tickTime = tc.Tick();
|
||||||
bool canTick = internalMspt > msptInternal;
|
bool canTick = tickTime > msptInternal;
|
||||||
if (canTick)
|
if (canTick)
|
||||||
{
|
{
|
||||||
MSPT = internalMspt;
|
MSPT = tickTime;
|
||||||
tc.Reset();
|
tc.Reset();
|
||||||
}
|
}
|
||||||
return canTick;
|
return canTick;
|
||||||
|
|||||||
Reference in New Issue
Block a user