Closed PriceHiller closed 1 year ago
fixed here https://github.com/goolord/alpha-nvim/commit/471d15ff3983d9ea4bf0333405f74a46d0bfb22e
highlights compose and thus every frame's highlights were kept in memory, so we just clear highlights for the alpha buffer before drawing
Thanks for the quick turnaround, can confirm on my side that it's been fixed.
I am attempting to make a simple component that updates every second to display time. So a clock.
I created a loop that calls
AlphaRedraw
and after playing around with it I noticed that this causes a massive memory allocation on every call that doesn't erase previous memory. This leads to what I assume to be a memory leak eventually crashing my system due to an out of memory error.I wasn't able to find any documentation noting how to use
AlphaRedraw
, so if this is intended to not be touched then perhaps a user command shouldn't be registered.My Alpha config can be found here with the loop I'm mentioning at the bottom of that file.
Video and a few notes:
AlphaRedraw
to show the memory increaseAlphaRedraw
callhtop
to display the memory usage on the right splitAlphaRedraw
https://user-images.githubusercontent.com/58627896/223439242-bbf0e86b-f407-403a-9651-4e313078e716.mp4