Skip to content

Commit

Permalink
fix hitching that I caused
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Ulti-FD committed Aug 13, 2021
1 parent 79aea80 commit 07890fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Themes/Til Death/BGAnimations/_songbg.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ 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
self:finishtweening()
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
Expand Down

0 comments on commit 07890fd

Please sign in to comment.