From 07890fdf0e1fbbb7eca7534a7511ac7799fba172 Mon Sep 17 00:00:00 2001 From: ulti_fd Date: Fri, 13 Aug 2021 00:45:06 -0400 Subject: [PATCH] fix hitching that I caused loading the new background too quickly on high quality graphics causes a big stutter, so I gotta revert most of my tween timing changes lmao --- Themes/Til Death/BGAnimations/_songbg.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Themes/Til Death/BGAnimations/_songbg.lua b/Themes/Til Death/BGAnimations/_songbg.lua index 61e26e3a83..dd3c1adaec 100644 --- a/Themes/Til Death/BGAnimations/_songbg.lua +++ b/Themes/Til Death/BGAnimations/_songbg.lua @@ -10,9 +10,8 @@ if enabled then self:diffusealpha(0) end, CurrentSongChangedMessageCommand = function(self) - --self:stoptweening():decelerate(self:GetDiffuseAlpha()):diffusealpha(0) - self:stoptweening():decelerate(0.08):diffusealpha(0) - self:sleep(0.07):queuecommand("ModifySongBackground") + self:stoptweening():smooth(0.5):diffusealpha(0) + self:sleep(0.2):queuecommand("ModifySongBackground") end, ModifySongBackgroundCommand = function(self) if GAMESTATE:GetCurrentSong() and GAMESTATE:GetCurrentSong():GetBackgroundPath() then @@ -20,13 +19,14 @@ if enabled then self:visible(true) self:LoadBackground(GAMESTATE:GetCurrentSong():GetBackgroundPath()) self:scaletocover(0, 0, SCREEN_WIDTH, SCREEN_BOTTOM) + self:sleep(0.05) self:smooth(0.4):diffusealpha(brightness) else self:visible(false) end end, OffCommand = function(self) - self:smooth(0.2):diffusealpha(0) + self:smooth(0.6):diffusealpha(0) end, } end