Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High cpu usage #17

Open
TheSorm opened this issue Dec 1, 2022 · 3 comments
Open

High cpu usage #17

TheSorm opened this issue Dec 1, 2022 · 3 comments

Comments

@TheSorm
Copy link

TheSorm commented Dec 1, 2022

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
Copy link
Owner

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

@TheSorm
Copy link
Author

TheSorm commented Dec 2, 2022

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants