local minValue = 0.05
local maxValue = 0.1
local curPing = tonumber((select(3,GetNetStats()) + select(4,GetNetStats())) / 1000) + .025
if curPing < minValue then
curPing = minValue
elseif curPing > maxValue then
curPing = maxValue
end
PQR_SpellAvailableTime = curPing
I'd like to know how to properly optimize this piece of code for optimal dps. I've noticed by changing the max values that my dps either goes up or down by a few thousand on the heroic raid dummy. So from I gather, it will take your world + home latency and add 25 ms to it?
That figure becomes your current ping and if it's less than your minvalue of 50ms it will register as 50 ms and if it's greater than your maxvalue of 100ms, it will register as 100ms.
What happens if it's in the middle of your min and max ping value, for instance 75ms?
Also I've read to set your in game latency thing to home+world+250, is this true or should I use the home+world+25 as in the code? Also, pqr spell check delay is 50ms, would I receive any benefit to lowering or raising this value?
I play a melee btw.
Thanks guys, I'm really confused!