5 protected int m_iLocalFPS;
7 protected int m_iAuthorityFPS;
10 int GetLastCheckedLocalFPS()
16 int GetLastCheckedAuthorityFPS()
18 return m_iAuthorityFPS;
22 override void UpdateStat()
24 int localFPS = System.GetFPS();
25 if (localFPS == m_iLocalFPS)
28 m_iLocalFPS = localFPS;
29 UpdateStatValueIfAuthority();
30 InvokeStatValueChange();
34 protected void UpdateStatValueIfAuthority()
36 RplComponent rplComponent =
m_Owner.GetRplComponent();
37 if (!rplComponent || rplComponent.Role() != RplRole.Authority)
40 m_iAuthorityFPS = m_iLocalFPS;
41 m_Owner.SetAuthorityStatValue(m_eStatType, m_iAuthorityFPS);
45 override void OnAuthorityStatValueSet(
int value)
47 m_iAuthorityFPS = value;
48 InvokeStatValueChange();