AznamirWoW / PallyPower

The official repository of PallyPower for retail version of World of Warcraft Classic/TBC
Other
6 stars 6 forks source link

High cpu usage #17

Open TheSorm opened 1 year ago

TheSorm commented 1 year ago

I am using PP on wotlk classic and the cpu usage (not memory) of pallypower apears to be way higher than of all my other add ons. in a 40 man raid it is using 33+ ms / s

AznamirWoW commented 1 year ago

Try editing PallyPower.lua, find self.buttonUpdate = self:ScheduleRepeatingTimer(self.ButtonsUpdate, 1, self) and change 1 to 10 to rescan players less often

TheSorm commented 1 year ago

Thx that will probably do it for now :)

But I guess a good solution for this would be to actually hook all the nassesarry events instead of having a constant update truth a timer

AznamirWoW commented 1 year ago

There's one event that scans classes and updates every button