2 - Small stutter in frame rate every 5s when addon is running
What steps will reproduce the problem?
1. Enable addon.
2. Find a quiet place away from other people to minimise othe issues
3. Watch for small, regular stutters in the frame rate. Easiest to see when hovering on a flying mount as there will be a slight, visible pause in the motion of the wings. It's also easy to pick up when moving in a straight line as the pause in forward progress is again very noticable.
What version of the product are you using?
v1.0-beta2
Do you have an error log of what happened?
N/A
Please provide any additional information below.
Taking a quick look at the code for anything on a 5s timer I found the following
self:ScheduleRepeatingTimer("UpdateLDB", 5)
Looking in the UpdateLDB function I noticed this call
UpdateAddOnMemoryUsage()
If I comment this out the stutters go away.
You might want to consider whether individually polling for the memory usage every 5s is the right thing to do, and only do this at specific times or giving players the ability is disable this function which would be my preference.
Personally I find that although the stutters are nowhere near bad enough to affect gameplay they are very noticable and distracting, and to honest I really don't care how much memory the addon is using.
- 1 comment
- 1 comment
- Reply
- #1
slaren Jan 22, 2011 at 20:49 UTC - 0 likesYeah I agree this is not very useful information to have in the LDB display, and if it can cause performance problems it is definitely not worth it.
It will be removed in the next version, thanks for the detailed report.