Add graphical offset global settings.
This commit is contained in:
@@ -63,6 +63,7 @@ namespace Cryville.Crtr {
|
||||
static double renderStep = 0.05;
|
||||
public static double actualRenderStep = 0;
|
||||
static bool autoRenderStep = false;
|
||||
public static float graphicalOffset = 0;
|
||||
public static float soundOffset = 0;
|
||||
static float startOffset = 0;
|
||||
public static float sv = 16f;
|
||||
@@ -133,7 +134,7 @@ namespace Cryville.Crtr {
|
||||
if (forceSyncFrames != 0) {
|
||||
forceSyncFrames--;
|
||||
double target = Game.AudioClient.Position - atime0;
|
||||
dt = target - cbus.Time;
|
||||
dt = target - cbus.Time - graphicalOffset;
|
||||
step = autoRenderStep ? 1f / Application.targetFrameRate : renderStep;
|
||||
inputProxy.SyncTime(target);
|
||||
}
|
||||
@@ -346,6 +347,7 @@ namespace Cryville.Crtr {
|
||||
renderStep = Settings.Default.RenderStep;
|
||||
actualRenderStep = renderStep;
|
||||
autoRenderStep = renderStep == 0;
|
||||
graphicalOffset = Settings.Default.GraphicalOffset;
|
||||
soundOffset = Settings.Default.SoundOffset;
|
||||
startOffset = Settings.Default.StartOffset;
|
||||
forceSyncFrames= Settings.Default.ForceSyncFrames;
|
||||
|
Reference in New Issue
Block a user