Hmmm...Here is a problem I'm having.
In the Looking For Raid people will join and leave a read quite often, even while in combat. This will bring up the default raidframe all the time.
This is a problem because there is no way of securely hiding it. Thus when using any other unitframe in raids you have 2 raidframes active at the same time.
I just asked myself: What would be if we parent the raidframe to another frame that we create and that we Hide().
Basically:
lua Code:
local hideRaid = CreateFrame("Frame")
local crfc = _G["CompactRaidFrameContainer"]
crfc:SetParent(hideRaid)
hideRaid:Hide()
If the raidframe container does not reparent itself in any way there should be no way it ever gets shown because of the hidden state of the parented frame.
The question that stands, does this provide any benefit in CPU usage? Aka will the events/functions of the raidframe be disabled if the parent frame is hidden? I guess so.
Either that or I have no choice and need to get rid of the RaidFrameManager aswell.