Quote:
Originally Posted by ptoc
Newer Zygor retail guides (I tested with 27862) seem to bloat the SavedVariables into the gigabyte range, which makes logging in and out lag quite a bit.
From a quick glance this is because the "Inventory Manager" duplicates the bag infrastructure (including functions, frame information etc.) into the SavedVariables. I don't know if this is because of a bug in Zygor or because I have Bagnon installed.
|
Disregard that. After some more digging, and testing with Zygor being the only addon: It has become obvious that this is a Bug in Zygor itself.
If you disable the Inventory Manager, the corresponding variable snapshot is pumped into the "frame_anchor" key of your profile instead, which is the reason the SavedVariables file is exploding in size with each Logout or UI reload.
After some more digging, it seems to be this part in ZygorGuidesViewer.lua, which basically copies the complete WoW UIParent table into the profile:
Code:
if self.db.profile.frame_anchor then
self.db.profile.frame_anchor[2]=UIParent
self.Frame:GetParent():ClearAllPoints()
self.Frame:GetParent():SetPoint(unpack(self.db.profile.frame_anchor))
end
I just edited the line to
Code:
--self.db.profile.frame_anchor[2]=UIParent
This also happens in Options.lua, but it runs only when you switch profiles.