Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Core/MapUpdate): switch from ACE_Method_Request to PCQ #3459

Merged
merged 11 commits into from
Nov 13, 2020
121 changes: 0 additions & 121 deletions src/common/Threading/DelayExecutor.cpp

This file was deleted.

39 changes: 0 additions & 39 deletions src/common/Threading/DelayExecutor.h

This file was deleted.

6 changes: 1 addition & 5 deletions src/server/game/Maps/Map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -708,11 +708,9 @@ void Map::VisitNearbyCellsOf(WorldObject* obj, TypeContainerVisitor<acore::Objec

void Map::Update(const uint32 t_diff, const uint32 s_diff, bool /*thread*/)
{
uint32 mapId = GetId(); // pussywizard: for crashlogs
sLog->outDebug(LOG_FILTER_POOLSYS, "%u", mapId); // pussywizard: for crashlogs

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sLog->outDebug(LOG_FILTER_POOLSYS, "%u", mapId); // pussywizard: for crashlogs

in end of func

if (t_diff)
_dynamicTree.update(t_diff);

/// update worldsessions for existing players
for (m_mapRefIter = m_mapRefManager.begin(); m_mapRefIter != m_mapRefManager.end(); ++m_mapRefIter)
{
Expand Down Expand Up @@ -837,8 +835,6 @@ void Map::Update(const uint32 t_diff, const uint32 s_diff, bool /*thread*/)
sScriptMgr->OnMapUpdate(this, t_diff);

BuildAndSendUpdateForObjects(); // pussywizard

sLog->outDebug(LOG_FILTER_POOLSYS, "%u", mapId); // pussywizard: for crashlogs
}

void Map::HandleDelayedVisibility()
Expand Down
6 changes: 3 additions & 3 deletions src/server/game/Maps/MapManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ void MapManager::Initialize()
{
int num_threads(sWorld->getIntConfig(CONFIG_NUMTHREADS));

// Start mtmaps if needed.
if (num_threads > 0 && m_updater.activate(num_threads) == -1)
abort();
// Start mtmaps if needed
if (num_threads > 0)
m_updater.activate(num_threads);
}

void MapManager::InitializeVisibilityDistanceInfo()
Expand Down
Loading