mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-02-04 21:39:20 +00:00
* Removes all but the barebones timers for runechat (#74428) ## About The Pull Request Instead of using timers to trigger the fadeout, we use animate() We start by queuing up all our alpha fades, then if we are shortened, we calculate the alpha we should be at, set our alpha to that, then animate from there to 0 This requires ANIMATION_PARALLEL on the pixel offsets to ensure they don't reset the alpha animation, and it does mean that a second alpha animate could reset the pixels, but that's a chance I'm willing to take. The timer work here was almost all of the cost, this should reduce the overhead of this proc signficantly, making runechat more fit for use under high stress. I have got it to end slightly early, but it's very minor and I've only seen it once, so yaknow, good enough. ## Why It's Good For The Game Speeeed ## Changelog 🆑 refactor: runechat should be a lot cheaper on the server. I've changed how it functions, if it behaves weird yell at me please don't just ignore it /🆑 * Removes all but the barebones timers for runechat --------- Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>