From 8d52054793fea7819dbe346b1d8d68fb3a4ef865 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 26 Apr 2015 00:15:22 +0300 Subject: Use cilkplus in game.cpp --- src/game.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 1e4d838e3..921c69cc3 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -587,7 +587,6 @@ void Game::logic() handleInput(); // Handle all necessary game logic - ActorSprite::actorLogic(); if (actorManager) actorManager->logic(); if (particleEngine) @@ -622,7 +621,7 @@ void Game::slowLogic() whoIsOnline->slowLogic(); Being::reReadConfig(); if (killStats) - killStats->recalcStats(); + cilk_spawn killStats->recalcStats(); if (time > mTime2 || mTime2 - time > 10) { @@ -632,20 +631,21 @@ void Game::slowLogic() } } + if (mainGraphics->getOpenGL()) + DelayedManager::delayedLoad(); + #ifdef TMWA_SUPPORT if (shopWindow) - shopWindow->updateTimes(); + cilk_spawn shopWindow->updateTimes(); #endif - if (mainGraphics->getOpenGL()) - DelayedManager::delayedLoad(); #ifdef TMWA_SUPPORT if (guildManager) guildManager->slowLogic(); #endif if (skillDialog) - skillDialog->slowLogic(); + cilk_spawn skillDialog->slowLogic(); - PacketCounters::update(); + cilk_spawn PacketCounters::update(); // Handle network stuff if (!gameHandler->isConnected()) -- cgit v1.2.3-60-g2f50