aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-01-23Core/ScriptedAI: std::chrono-ify DoSpawnCreatureCarbenium
(cherry picked from commit f5076112cb25bff877a450a14fe20172e9044081)
2022-01-23Core/BossAI: Remove _DespawnAtEvade(uint32, Creature*) overloadCarbenium
Use _DespawnAtEvade(Seconds, Creature*) instead (cherry picked from commit 27229c10cd6813e69ea6db69384312b1854b2b57)
2022-01-23Core/InstanceScript: std::chrono-ify DoRespawnGameObjectCarbenium
(cherry picked from commit d7ff8c272ad016296e1eed5aae325e4e5058ddd8)
2022-01-23Core/Utilities: Add custom _days chrono literalCarbenium
(cherry picked from commit d5de96e46bf52ccb2fffe01c0709f9238977a80e)
2022-01-23Build: Add WITH_LD_GOLD option to use gold linker on unixCarbenium
gold is an ELF-only linker which has a better performance than the default ld. (cherry picked from commit 796e2b32e03e7b1a56e44bd4b8988f9156bbb026)
2022-01-23Common/Crypto: #ifdef out unnecessary locking code for OpenSSL 1.1+ (PR #25110)Peter Keresztes Schmidt
(cherry picked from commit 7ea33120a03d70aaa856c2c66f183d684131746e)
2022-01-23DB/SAI: Add new view vw_smart_scripts_with_labels that shows labels instead ↵jackpoz
of numbers from smart_scripts table (cherry picked from commit c164c257ae0586bdebb9b81ecb965d9d07eabfef)
2022-01-23Core/Misc: Code cleanupjackpoz
Remove more unused code in UpdateTime class (cherry picked from commit 6c4f71c84b292fd86da0d061d774a7f3629f6d85)
2022-01-23Scripts/Borean Tundra: duplicate comment text (#25102)Trond B. Krokli
(cherry picked from commit ebb9e1b4de23a069e97d2c6134349935b8a47c59)
2022-01-23tests: Add some basic tests for EventMapCarbenium
(cherry picked from commit 7950275697c9d48781ad61cf3749e0392ee660bc)
2022-01-23dep: Add catch2 unit test framework and wire it upCarbenium
To enable the test suite, make sure to configure CMake with -DBUILD_TESTING=1 , since it is disabled by default. The catch2 dependency will be downloaded during configure time. Also add a new target "tests-common", which includes unit tests for the "common" project. To finally run the tests use the "test" target. CircleCI: Run unit tests (cherry picked from commit 6a28ee7b2a4269aa7e43265d1cd0067537e3e883)
2022-01-23Core/Metric: Add more metrics about World::Update() loop (#25098)Giacomo Pozzoni
* Core/Metric: Add more metrics about World::Update() loop * Add new Performance profiling grafana dashboard * Add new cmake setting WITHOUT_METRICS that disables all metrics As new metrics are added, someone might want to disable them if unused. * Add more metrics about World::Update() loop * Remove old performance profiling features Remove "server set difftime" command, "-RecordUpdateTimeDiffInterval" and "MinRecordUpdateTimeDiff" worldserver config settings and their related code. The whole UpdateTime class could be removed too. * Update and rename 2020_07_99_99_world.sql to 2020_07_24_00_world.sql (cherry picked from commit 3c0ac7302f902d1811d2c215217a3d701f8b5b19)
2022-01-23Core/Combat: Disable triggers entering combat (#25086)Giacomo Pozzoni
* Core/Combat: Disable triggers entering combat * Move check to database flags_extra flag in creature_template with value 0x00002000 * Fix Rotface puddle stalker too * Rename 9999_99_99_99_world.sql to 2020_07_22_00_world.sql (cherry picked from commit 6440c3bcac85a40de5c34aef1d8a8856966cc140)
2022-01-23EventMap: Remove GetNextEventTime and GetTimer methods (PR #25092)Peter Keresztes Schmidt
(cherry picked from commit 6ab9922171cf6e2877c39f503bcf987dd9faa898)
2022-01-23Core/Scripts: Fix timing issue of EVENT_FLY_TO_RANDOM_PILLAR during Illidan ↵Carbenium
encounter The intention here is to add additional 30 seconds of delay to the current delay of EVENT_FLY_TO_RANDOM_PILLAR. Instead of EventMap::GetNextEventTime, EventMap::GetTimeUntilEvent has to be used which returns the currently scheduled delay until the event occurs. EventMap::GetNextEventTime instead exposes the timer value internal to EventMap at which the event should occur. (cherry picked from commit f1f251eb381bccc9164e29a81da9e013090543a4)
2022-01-23TaskScheduler: use randtime instead of custom implementationCarbenium
(cherry picked from commit f773bf68e0f96a97b706f366da4071ba28060b04)
2022-01-23Dep/Boost: Remove unused thread library (#25076)Giacomo Pozzoni
(cherry picked from commit cf5babc302d43f903b444b97bfdb934545356da2)
2022-01-23Core/Threads: Replace Boost TLS with C++11 one (#15782)Giacomo Pozzoni
* Core/Threads: Replace Boost TLS with C++11 one Replace boost::thread_specific_ptr<T> thread-local storage with C++11 thread_local to remove libboost_thread dependency from common project * Fix no-pch build (cherry picked from commit 00b16992f1ae3bf14ab5fe6366028a2b8648bfa0)
2022-01-23Build: Enable -Wimplicit-fallthrough on clang (#25056)Peter Keresztes Schmidt
* Misc: Use [[fallthrough]] attribute instead of comment to mark intentional fallthroughs Related: #25006 * Misc: Add some missing breaks (no-ops) to satisfy clang Related: #25006 Closes #25055 * Build: Enable -Wimplicit-fallthrough on clang Closes #25006
2022-01-23Misc: Use [[fallthrough]] attribute instead of comment to mark intentional ↵Peter Keresztes Schmidt
fallthroughs (#25054) Related: #25006 (cherry picked from commit 85b5b842ca6c05d4e51081e6c3282940a80f3761)
2022-01-23Core/Misc: Replace boost::shared_mutex with std::shared_mutex (#24328)Giacomo Pozzoni
* Core/Misc: Replace boost::shared_mutex with std::shared_mutex * Remove std forward declarations (cherry picked from commit 7032ee0bdb47c995dfd89bce3d5b6fad13ec6d73)
2022-01-23Dep/Boost: Set boost version to 1.67 on *nix and 1.70 on Windows (#25069)Giacomo Pozzoni
(cherry picked from commit c54dc3ef9273378c55e0c17acef18de731a7f8eb)
2022-01-23Core/Metric: Log Map::Update() times (#25067)Giacomo Pozzoni
* Core/Metric: Log Map::Update() times * Add more performant version to reduce allocations when metrics are disabled * Linux build fix * Add metric stopwatch version that doesnt let users forget to _END it * Fix linux build * Code cleanup * Add Map updates panel to General dashboard * Add "Recent events" panel to General dashboard * Apply latest codestyle changes Co-authored-by: Shauren <shauren.trinity@gmail.com> (cherry picked from commit 5eb742ee6a892b684b0c4cbde9f02f838b8300e5)
2022-01-23Core/Time: Rename GetGameTime{System, Steady}Point methodsTreeston
The names are a bit unhandy. Rename them (shorter but still meaningful). GetGameTimeSystemPoint() -> GetSystemTime() GetGameTimeSteadyPoint() -> Now() Also add 2 new typedefs: typedef std::chrono::steady_clock::time_point TimePoint; typedef std::chrono::system_clock::time_point SystemTimePoint; Closes #25042 (cherry picked from commit 896b68d5c297b06587645caebc98b704978ecaa7)
2022-01-23Misc: Remove some unneeded/duplicated includes (#25051)Peter Keresztes Schmidt
(cherry picked from commit ddf16ae4d9eff6e849618bb6c5a00603f26daa93)
2022-01-23Nopch fixShauren
(cherry picked from commit c0ade2e98fbc6cc129b4725d2216016f90996e8b)
2022-01-23Dep: Switch to boost process instead of old standalone versionShauren
(cherry picked from commit 524d16739861d0b2279e2270e319b0c77ec9b03b)
2022-01-23Core/Misc: Replace boost::optional with std::optional part 2Shauren
2022-01-23Core/Misc: Replace boost::optional with std::optional (#25047)Peter Keresztes Schmidt
C++17 is already mandatory, so it's a safe thing to do (cherry picked from commit 202fd41389973322f63186fd8e5a368fce3e1b04)
2022-01-23Core/Util: Remove EventMap's non-std::chrono::duration based interface (#25049)Peter Keresztes Schmidt
Closes #25012 (cherry picked from commit ce1e2c0f9b4f80e1fa5c448ee12fec43204a3634)
2022-01-23Scripts/World: Use std::chrono::duration overloads of EventMapShauren
2022-01-23Scripts/Zul'aman: Use std::chrono::duration overloads of EventMapShauren
2022-01-23Scripts/Blackrock Spire: Use std::chrono::duration overloads of EventMapShauren
2022-01-23Scripts/Stonecore: Use std::chrono::duration overloads of EventMapShauren
2022-01-23Scripts/Halls of Origination: Use std::chrono::duration overloads of EventMapShauren
2022-01-23Scripts/Blackrock Caverns: Use std::chrono::duration overloads of EventMapShauren
2022-01-23Scripts/Firelands: Use std::chrono::duration overloads of EventMapShauren
2022-01-23Scripts/Baradin Hold: Use std::chrono::duration overloads of EventMapShauren
2022-01-23Core/Misc: Port refactors 9fe6756cf26e916d69673879c31e09ee57ef6470NoName
* + For SMSG_DEATH_RELEASE_LOC G3D::Vector3 -> TaggedPosition<Position::XYZ> + removed non 3.3.5 packets Co-authored-by: Peter Keresztes Schmidt <carbenium@outlook.com> Co-authored-by: Mogadischu <cgnad@live.de> Co-authored-by: Shauren <shauren.trinity@gmail.com> (cherry picked from commit 9fe6756cf26e916d69673879c31e09ee57ef6470)
2022-01-23Scripts/World+Pet: Use std::chrono::duration overloads of EventMap (#25017)Peter Keresztes Schmidt
Contributes to #25012 (cherry picked from commit 0072fa922db1642d720c545ccc2ac095c140f0ca)
2022-01-23Scripts/Icecrown Citadel: Use std::chrono::duration overloads of EventMap ↵Peter Keresztes Schmidt
(Part 2) (#25041) Part 2: gunship battle and Sindragosa Contributes to https://github.com/TrinityCore/TrinityCore/issues/25012 (cherry picked from commit 6968e7a1a1d638cc43409e7ab5e96f2e4854fe69)
2022-01-23Scripts/Icecrown Citadel: Use std::chrono::duration overloads of EventMap ↵Peter Keresztes Schmidt
(#25036) Part 1: without gunship battle and Sindragosa Contributes to #25012 (cherry picked from commit 5eaff8a3bcc4a81ca27e19418f0c508966ad3c7f)
2022-01-23Scripts/Tempest Keep: Use std::chrono::duration overloads of EventMap (#25040)Peter Keresztes Schmidt
Contributes to #25012 (cherry picked from commit 2d9c5979a6a6d9244f557ff5653694ce5b8f19a4)
2022-01-23Scripts/Utgarde Keep: Use std::chrono::duration overloads of EventMap (#25039)Peter Keresztes Schmidt
Contributes to #25012 (cherry picked from commit f00ab389d60cd5c8ba44ec8c6a49369c70a95d8b)
2022-01-23Scripts/Magisters Terrace: Use std::chrono::duration overloads of EventMap ↵Peter Keresztes Schmidt
(#25038) Contributes to #25012 (cherry picked from commit 88314660b66637982d629b786630af0dc0323eab)
2022-01-23Core/CombatAI: Use std::chrono::duration overloads of EventMap (#25037)Peter Keresztes Schmidt
Contributes to #25012 (cherry picked from commit bd837d4c3dc61e7817ccb14071108e97db86f1f5)
2022-01-23Scripts/Ulduar: Use std::chrono::duration overloads of EventMap (#25035)Peter Keresztes Schmidt
Contributes to #25012 (cherry picked from commit d4bce9f4d2d6059740e5bcc146ffa8d98f715d6f)
2022-01-23Scripts/Nexus: Use std::chrono::duration overloads of EventMap (#25033)Peter Keresztes Schmidt
Contributes to #25012 (cherry picked from commit 2f538258d9e2e1162766efaee8cb61eeae4f921e)
2022-01-23Scripts/Naxxramas: Use std::chrono::duration overloads of EventMap (#25032)Peter Keresztes Schmidt
Contributes to #25012 (cherry picked from commit 6eec0bc50f40892275934ae91d410b63ecbe2dfd)
2022-01-23Scripts/Isle of Conquest: Use std::chrono::duration overloads of EventMap ↵Peter Keresztes Schmidt
(#25031) Contributes to #25012 (cherry picked from commit 1a32b0f5b3c64bad4f379a45e5e7b07f00fe774e)