diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-24 13:19:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-24 13:19:05 +0300 |
commit | 30da377919524a96a385cbe16f8ab74d5a4a7fab (patch) | |
tree | 9ab40591d9e53346c8eee90e82509144b7437cb7 | |
parent | 9fa9e4924c1ccc7050d7a0bad21576053699e71c (diff) | |
download | manaplus-30da377919524a96a385cbe16f8ab74d5a4a7fab.tar.gz manaplus-30da377919524a96a385cbe16f8ab74d5a4a7fab.tar.bz2 manaplus-30da377919524a96a385cbe16f8ab74d5a4a7fab.tar.xz manaplus-30da377919524a96a385cbe16f8ab74d5a4a7fab.zip |
Add CilkPlus support into map.cpp
-rw-r--r-- | src/resources/map/map.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp index 18e3dc7f5..c7eed522d 100644 --- a/src/resources/map/map.cpp +++ b/src/resources/map/map.cpp @@ -331,7 +331,7 @@ void Map::draw(Graphics *const graphics, int scrollX, int scrollY) // Make sure actors are sorted ascending by Y-coordinate // so that they overlap correctly BLOCK_START("Map::draw sort") - mActors.sort(actorCompare); + cilk_spawn mActors.sort(actorCompare); BLOCK_END("Map::draw sort") // update scrolling of all ambient layers @@ -379,6 +379,8 @@ void Map::draw(Graphics *const graphics, int scrollX, int scrollY) } #endif + cilk_sync; + if (mDrawLayersFlags == MapType::SPECIAL3 || mDrawLayersFlags == MapType::SPECIAL4 || mDrawLayersFlags == MapType::BLACKWHITE) |