[Hitpoints] Remove HP Update Throttling (#1517)

* Remove HP update throttling and increase HP update resolution and accuracy

* Make some log statements detail

* Add better logging messages

* Remove old self update throttle block check preventing updates to self
This commit is contained in:
Chris Miles
2021-09-03 19:47:25 -05:00
committed by GitHub
parent 7f823256f4
commit e1df72d64d
4 changed files with 48 additions and 73 deletions
+3 -2
View File
@@ -119,8 +119,9 @@ bool Client::Process() {
// SendHPUpdate calls hpupdate_timer.Start so it can delay this timer, so lets not reset with the check
// since the function will anyways
if (hpupdate_timer.Check(false))
if (hpupdate_timer.Check(false)) {
SendHPUpdate();
}
/* I haven't naturally updated my position in 10 seconds, updating manually */
if (!is_client_moving && position_update_timer.Check()) {
@@ -466,7 +467,7 @@ bool Client::Process() {
if (gravity_timer.Check())
DoGravityEffect();
}
if (shield_timer.Check()) {
ShieldAbilityFinish();
}