forked from nikita/muzika-gromche
Remove Config.ExtrapolateTime even from Debug build
Just always do it, there is no reason not to. And maybe try dspTime to replace the whole extrapolation technique.
This commit is contained in:
parent
ee2b1574d0
commit
567597e353
|
|
@ -1895,7 +1895,7 @@ namespace MuzikaGromche
|
|||
LastKnownNonExtrapolatedTime = ExtrapolatedTime = audioSource.time;
|
||||
}
|
||||
// Frames are rendering faster than AudioSource updates its playback time state
|
||||
else if (IsPlaying && HasStarted && Config.ExtrapolateTime)
|
||||
else if (IsPlaying && HasStarted)
|
||||
{
|
||||
#if DEBUG
|
||||
Debug.Assert(LastKnownNonExtrapolatedTime == audioSource.time); // implied
|
||||
|
|
@ -2541,7 +2541,6 @@ namespace MuzikaGromche
|
|||
|
||||
public static ConfigEntry<bool> OverrideSpawnRates { get; private set; } = null!;
|
||||
|
||||
public static bool ExtrapolateTime { get; private set; } = true;
|
||||
public static bool ShouldSkipWindingPhase { get; private set; } = false;
|
||||
public static bool VanillaCompatMode { get; private set; } = false;
|
||||
|
||||
|
|
@ -2628,7 +2627,6 @@ namespace MuzikaGromche
|
|||
#if DEBUG
|
||||
SetupEntriesForGameOverText(configFile);
|
||||
SetupEntriesForScreenFilters(configFile);
|
||||
SetupEntriesForExtrapolation(configFile);
|
||||
SetupEntriesToSkipWinding(configFile);
|
||||
SetupEntriesForPaletteOverride(configFile);
|
||||
SetupEntriesForTimingsOverride(configFile);
|
||||
|
|
@ -2687,20 +2685,6 @@ namespace MuzikaGromche
|
|||
}
|
||||
|
||||
#if DEBUG
|
||||
private void SetupEntriesForExtrapolation(ConfigFile configFile)
|
||||
{
|
||||
var entry = configFile.Bind("General", "Extrapolate Audio Playback Time", true,
|
||||
new ConfigDescription("AudioSource only updates its playback position about 20 times per second.\n\nUse extrapolation technique to predict playback time between updates for smoother color animations."));
|
||||
LethalConfigManager.AddConfigItem(new BoolCheckBoxConfigItem(entry, requiresRestart: false));
|
||||
entry.SettingChanged += (sender, args) => apply();
|
||||
apply();
|
||||
|
||||
void apply()
|
||||
{
|
||||
ExtrapolateTime = entry.Value;
|
||||
}
|
||||
}
|
||||
|
||||
private void SetupEntriesToSkipWinding(ConfigFile configFile)
|
||||
{
|
||||
var entry = configFile.Bind("General", "Skip Winding Phase", false,
|
||||
|
|
|
|||
Loading…
Reference in New Issue