1
0
Fork 0

Config: Remove EnableColorAnimations toggle

Turns out, it doesn't really affect anything. AMD on Linux would lag anyway.
This commit is contained in:
ivan tkachenko 2025-07-30 18:37:22 +03:00
parent 841ccc74ed
commit 2a28a36a69
2 changed files with 8 additions and 16 deletions

View File

@ -7,6 +7,7 @@
- Fixed visual issues with the fade out effect. - Fixed visual issues with the fade out effect.
- Fixed visual glitch at the last beat of a loop. - Fixed visual glitch at the last beat of a loop.
- Fixed timings of one of the tracks. - Fixed timings of one of the tracks.
- Removed unnecessary "Enable Color Animations" config option.
## MuzikaGromche 13.37.911 - Sri Lanka Bus hotfix ## MuzikaGromche 13.37.911 - Sri Lanka Bus hotfix

View File

@ -1196,8 +1196,6 @@ namespace MuzikaGromche
float transitionLength = track.ColorTransitionIn + track.ColorTransitionOut; float transitionLength = track.ColorTransitionIn + track.ColorTransitionOut;
if (Config.EnableColorAnimations.Value)
{
if (transitionLength > /* epsilon */ 0.01) if (transitionLength > /* epsilon */ 0.01)
{ {
if (BeatTimeSpan.Between(currentClipStart, timestamp).Duration() < track.ColorTransitionOut) if (BeatTimeSpan.Between(currentClipStart, timestamp).Duration() < track.ColorTransitionOut)
@ -1209,7 +1207,6 @@ namespace MuzikaGromche
return ColorTransition(currentClipEnd); return ColorTransition(currentClipEnd);
} }
} }
}
// default // default
return new SetLightsColorEvent(ColorAtWholeBeat(timestamp)); return new SetLightsColorEvent(ColorAtWholeBeat(timestamp));
@ -1409,8 +1406,6 @@ namespace MuzikaGromche
public class Config : SyncedConfig2<Config> public class Config : SyncedConfig2<Config>
{ {
public static ConfigEntry<bool> EnableColorAnimations { get; private set; } = null!;
public static ConfigEntry<bool> DisplayLyrics { get; private set; } = null!; public static ConfigEntry<bool> DisplayLyrics { get; private set; } = null!;
public static ConfigEntry<float> AudioOffset { get; private set; } = null!; public static ConfigEntry<float> AudioOffset { get; private set; } = null!;
@ -1432,10 +1427,6 @@ namespace MuzikaGromche
public Config(ConfigFile configFile) : base(PluginInfo.PLUGIN_GUID) public Config(ConfigFile configFile) : base(PluginInfo.PLUGIN_GUID)
{ {
EnableColorAnimations = configFile.Bind("General", "Enable Color Animations", true,
new ConfigDescription("Smooth light color transitions are known to cause performance issues on some setups.\n\nTurn them off if you experience lag spikes."));
LethalConfigManager.AddConfigItem(new BoolCheckBoxConfigItem(EnableColorAnimations, requiresRestart: false));
DisplayLyrics = configFile.Bind("General", "Display Lyrics", true, DisplayLyrics = configFile.Bind("General", "Display Lyrics", true,
new ConfigDescription("Display lyrics in the HUD tooltip when you hear the music.")); new ConfigDescription("Display lyrics in the HUD tooltip when you hear the music."));
LethalConfigManager.AddConfigItem(new BoolCheckBoxConfigItem(DisplayLyrics, requiresRestart: false)); LethalConfigManager.AddConfigItem(new BoolCheckBoxConfigItem(DisplayLyrics, requiresRestart: false));