Skip to content

Commit

Permalink
[Performance] Removed a timer where clients would constantly calculat…
Browse files Browse the repository at this point in the history
…e light amount on equipment every 600ms, instead clients will update light when changing equipment or entering a zone
  • Loading branch information
Akkadius committed Mar 28, 2017
1 parent bf45a5a commit 47691c2
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
2 changes: 2 additions & 0 deletions changelog.txt
Expand Up @@ -3,6 +3,8 @@ EQEMu Changelog (Started on Sept 24, 2003 15:50)
== 03/28/2017 == == 03/28/2017 ==
Akkadius: [Performance] Fixed a large overhead issue where every single NPC in a zone was checking to depop themselves Akkadius: [Performance] Fixed a large overhead issue where every single NPC in a zone was checking to depop themselves
as a swarm pet every 3ms regardless of being a swarm pet or not. Swarm pets now check to depop only when their timer is up as a swarm pet every 3ms regardless of being a swarm pet or not. Swarm pets now check to depop only when their timer is up
Akkadius: [Performance] Removed Clients constantly calculating light amount on equipment every 600ms, instead clients will update
light when changing equipment or entering a zone


== 03/27/2017 == == 03/27/2017 ==
Akkadius: [Performance] Reworked how client to NPC aggro checks are made Akkadius: [Performance] Reworked how client to NPC aggro checks are made
Expand Down
1 change: 0 additions & 1 deletion zone/client.cpp
Expand Up @@ -153,7 +153,6 @@ Client::Client(EQStreamInterface* ieqs)
anon_toggle_timer(250), anon_toggle_timer(250),
afk_toggle_timer(250), afk_toggle_timer(250),
helm_toggle_timer(250), helm_toggle_timer(250),
light_update_timer(600),
aggro_meter_timer(AGGRO_METER_UPDATE_MS), aggro_meter_timer(AGGRO_METER_UPDATE_MS),
m_Proximity(FLT_MAX, FLT_MAX, FLT_MAX), //arbitrary large number m_Proximity(FLT_MAX, FLT_MAX, FLT_MAX), //arbitrary large number
m_ZoneSummonLocation(-2.0f,-2.0f,-2.0f), m_ZoneSummonLocation(-2.0f,-2.0f,-2.0f),
Expand Down
1 change: 0 additions & 1 deletion zone/client.h
Expand Up @@ -1478,7 +1478,6 @@ class Client : public Mob
Timer anon_toggle_timer; Timer anon_toggle_timer;
Timer afk_toggle_timer; Timer afk_toggle_timer;
Timer helm_toggle_timer; Timer helm_toggle_timer;
Timer light_update_timer;
Timer aggro_meter_timer; Timer aggro_meter_timer;
Timer npc_close_scan_timer; Timer npc_close_scan_timer;


Expand Down
9 changes: 0 additions & 9 deletions zone/client_process.cpp
Expand Up @@ -251,15 +251,6 @@ bool Client::Process() {
} }
} }


if (light_update_timer.Check()) {

UpdateEquipmentLight();
if (UpdateActiveLight()) {
SendAppearancePacket(AT_Light, GetActiveLightType());
}
}


/* Build a close range list of NPC's */ /* Build a close range list of NPC's */
if (npc_close_scan_timer.Check()) { if (npc_close_scan_timer.Check()) {


Expand Down

0 comments on commit 47691c2

Please sign in to comment.