mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-22 03:40:54 +00:00
remove +-0.1 zone
This commit is contained in:
parent
2e660140eb
commit
3ecdfed7d6
@ -130,6 +130,8 @@ namespace QSB
|
||||
{
|
||||
GUI.Label(new Rect(220, offset, 200f, 20f), $"Time Difference : {WakeUpSync.LocalInstance.GetTimeDifference()}");
|
||||
offset += _debugLineSpacing;
|
||||
GUI.Label(new Rect(220, offset, 200f, 20f), $"Timescale : {OWTime.GetTimeScale()}");
|
||||
offset += _debugLineSpacing;
|
||||
}
|
||||
|
||||
if (!HasWokenUp)
|
||||
|
@ -13,7 +13,6 @@ namespace QSB.TimeSync
|
||||
public static WakeUpSync LocalInstance { get; private set; }
|
||||
|
||||
private const float PauseOrFastForwardThreshold = 0.5f;
|
||||
private const float ChangeTimescaleThreshold = 0.1f;
|
||||
private const float TimescaleBounds = 0.3f;
|
||||
|
||||
private const float MaxFastForwardSpeed = 60f;
|
||||
@ -267,11 +266,6 @@ namespace QSB.TimeSync
|
||||
WakeUpOrSleep();
|
||||
}
|
||||
|
||||
if (diff < ChangeTimescaleThreshold && diff > -ChangeTimescaleThreshold)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var mappedTimescale = diff.Map(-PauseOrFastForwardThreshold, PauseOrFastForwardThreshold, 1 + TimescaleBounds, 1 - TimescaleBounds);
|
||||
OWTime.SetTimeScale(mappedTimescale);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user