CPU Usage very high.
Poccket opened this issue ยท 6 comments
As of the latest version, the addon does keep every action cached in memory, as some of the new features like Achievements, take A LONG time to search. So I search them once and then cache them.
Currently I am working on making the search "async" so it will search a little bit per frame. This will reduce lag, but as a side effect, there will be a short delay while typing, and especially on the first opening of the frame.
This will not really change the memory footprint, as it is still caching the actions. You can disable any modules you don't care for, especially Achievements, in the AddOns section of the game settings. Let me know if this changes anything.
Thank you for the quick reply! The lag occurs without even using the addon- I just had it enabled while running some mythics. I will try what you suggested and report back though.
Try version 1.2.0 in a few moments. Even before this update, the addon should not be doing much when its not opened. But maybe I fixed it.
In 1.2.0, upon first loading, CPU usage is high (obviously, it's doing the caching), but it calms down quickly. If Heirlooms are enabled in the settings, it never finishes loading, but the CPU usage does go down as expected.
Reloading causes the cache to reform (I assume this is intentional), but loading screens don't, if you were curious.
I just noticed the heirloom issue, it seems the game randomly fails to return heirloom info. Not sure why. On some loads, it works perfectly fine. I have added a temporary fix, but the heirlooms that fail to load will not be added to the list.
But yes, the game clears addon memory when you /reload, so the addon will have to reload the cache.