View Single Post
Old 06/06/07, 7:37 AM   #339
radiante
Von Kaiser
 
Draenei Shaman
 
Stormreaver
Originally Posted by Antiarc View Post
There's an option for the TPS update speed in there, as well as the sample window (larger window = smoother numbers); however, my TPS algorithm is pretty shoddy, and I'm working with Kalman to come up with a better one.
There are some know alrorithms that u could use:

- First you could use several windows information an take the average which would have an efect of having a larger window
- You take serveral windows with weight. For example you have two windows one from the last 0.5secs and one from 1 sec ago, you want to give the last one priority then it would be someting like1*WindowOne+2*WindowTwo)/(1+2). This gives a higher priority to the most recent information
- ActualTps =(1-A)*LastTps+A*ThisWindowTps were A is between 1 and 0. For example take A=0.5 and in the first period you a WindowTps=30, your ActualTps=30 because u dont have more info. In the second perioriod you have a Tps=100, then: ActualTps= 0.5*30+0.5*100=65. In the third period you have WindowTps=100 again, then ActualTps= 0.5*65+0.5*100= 82.5
Etc. The closer A to 1 the more weight new information has.
 
User is offline.
Reply With Quote