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

FPS dropped to 0 in the middle of fight :( #17

Closed
MaelKoT opened this issue Dec 15, 2020 · 5 comments
Closed

FPS dropped to 0 in the middle of fight :( #17

MaelKoT opened this issue Dec 15, 2020 · 5 comments

Comments

@MaelKoT
Copy link
Contributor

MaelKoT commented Dec 15, 2020

image

function Skada:MemoryCheck()
    UpdateAddOnMemoryUsage()
    local mem = GetAddOnMemoryUsage("Skada")
    if mem > 30000 then
        self:Print(
            L["Memory usage is high. You may want to reset Skada, and enable one of the automatic reset options."]
        )
    end
end

I don't care about addon memory usage, but I'm really worried when, due to memory check function, fps drops to zero :(
image

@bkader
Copy link
Owner

bkader commented Dec 15, 2020

Thanks for reporting this, it is fixed now. It should be Skada:Print instead of self:Print.
As for the MemoryCheck function, it is only called out of combat and only in 2 situations:

  1. 3 seconds after the log (PLAYER_ENTERING_WORLD).
  2. 3 seconds after the combat ends.

I don't know if it was this specific lua error that was causing your FPS drop or the function itself or even something else, but try the fix and let me know.
THanks again.

@MaelKoT
Copy link
Contributor Author

MaelKoT commented Dec 15, 2020

Thanks, now I know when this function is called.
It's just that I specially set in the settings to save a large number of fights (~ 30-40), so that I can view them later, and not accidentally lose anything. I understand, this will take more memory and I don't want to see a warning 3 seconds after each fight ends. Is there anything I can do about this?

And yes - maybe Im wrong, and the FPS falls after battle, not during, now Im not sure about this anymore...

@bkader
Copy link
Owner

bkader commented Dec 15, 2020

Well, if you really want to remove that function, the easiest and fasted way to do it is by simply emptying the content of that function, making it look like:

function Skada:MemoryCheck() end

Or if you give me time, I will add an option to enable/disable memory check.

@bkader
Copy link
Owner

bkader commented Dec 15, 2020

Screenshot_13
@MaelKoT you can update the addon now, you will see this option added instead of modifying the files.
Whenever you have the chance to check if the fps drop is gone let me know please so I can close this issue. For now we will leave it open.

@bkader
Copy link
Owner

bkader commented Dec 22, 2020

It has been already a 7 days, I presume that you didn't have any FPS drop or you didn't have the chance to test it. In either cases, I am closing this issue for now. Thanks a lot for your feedback.

@bkader bkader closed this as completed Dec 22, 2020
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