Peter Keresztes Schmidt
7ea33120a0
Common/Crypto: #ifdef out unnecessary locking code for OpenSSL 1.1+ (PR #25110 )
2020-07-25 03:44:38 +02:00
jackpoz
6c4f71c84b
Core/Misc: Code cleanup
...
Remove more unused code in UpdateTime class
2020-07-24 13:59:51 +02:00
Trond B. Krokli
ebb9e1b4de
Scripts/Borean Tundra: duplicate comment text ( #25102 )
2020-07-24 13:11:48 +02:00
Giacomo Pozzoni
3c0ac7302f
Core/Metric: Add more metrics about World::Update() loop ( #25098 )
...
* 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
2020-07-24 00:30:16 +02:00
Giacomo Pozzoni
6440c3bcac
Core/Combat: Disable triggers entering combat ( #25086 )
...
* 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
2020-07-22 19:32:29 +02:00
Peter Keresztes Schmidt
6ab9922171
EventMap: Remove GetNextEventTime and GetTimer methods (PR #25092 )
2020-07-22 16:09:32 +02:00
Treeston
6bdba191b5
Core/Authserver: Some safeguards in case anyone (read: me) tweaks these files in the future.
2020-07-22 14:54:17 +02:00
Carbenium
f1f251eb38
Core/Scripts: Fix timing issue of EVENT_FLY_TO_RANDOM_PILLAR during Illidan 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.
2020-07-22 01:19:59 +02:00
Shauren
f50575ca77
Core/PlayerDump: Fixed overwriting cached character data on .pdump load when importing a character with duplicate name
2020-07-21 19:57:15 +02:00
Carbenium
f773bf68e0
TaskScheduler: use randtime instead of custom implementation
2020-07-21 15:52:12 +02:00
Shauren
0b616e4865
Core/Players: Use original proc target to update weapon skills, fixes ranged weapon skill gains
2020-07-20 17:42:16 +02:00
Giacomo Pozzoni
00b16992f1
Core/Threads: Replace Boost TLS with C++11 one ( #15782 )
...
* 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
2020-07-18 21:34:45 +02:00
Peter Keresztes Schmidt
e6e5775be8
Build: Enable -Wimplicit-fallthrough on clang ( #25056 )
...
* 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
2020-07-18 20:43:16 +02:00
Peter Keresztes Schmidt
85b5b842ca
Misc: Use [[fallthrough]] attribute instead of comment to mark intentional fallthroughs ( #25054 )
...
Related: #25006
2020-07-18 20:42:28 +02:00
Giacomo Pozzoni
7032ee0bdb
Core/Misc: Replace boost::shared_mutex with std::shared_mutex ( #24328 )
...
* Core/Misc: Replace boost::shared_mutex with std::shared_mutex
* Remove std forward declarations
2020-07-18 18:34:45 +02:00
Giacomo Pozzoni
5eb742ee6a
Core/Metric: Log Map::Update() times ( #25067 )
...
* 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 >
2020-07-18 00:52:01 +02:00
Shauren
83e0a1b944
Core/PacketIO: Fix broken CMSG_RESURRECT_RESPONSE structure after 9fe6756cf2
2020-07-17 21:06:45 +02:00
Treeston
896b68d5c2
Core/Time: Rename GetGameTime{System, Steady}Point methods
...
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
2020-07-17 17:05:55 +02:00
Peter Keresztes Schmidt
ddf16ae4d9
Misc: Remove some unneeded/duplicated includes ( #25051 )
2020-07-16 14:14:01 +02:00
Shauren
c0ade2e98f
Nopch fix
2020-07-15 19:55:04 +02:00
Shauren
524d167398
Dep: Switch to boost process instead of old standalone version
2020-07-15 19:33:12 +02:00
Shauren
1405760f31
Core/Battlefield: Fixed startup crash when compiled without scripts
2020-07-15 15:55:31 +02:00
Peter Keresztes Schmidt
202fd41389
Core/Misc: Replace boost::optional with std::optional ( #25047 )
...
C++17 is already mandatory, so it's a safe thing to do
2020-07-15 10:22:29 +02:00
Peter Keresztes Schmidt
ce1e2c0f9b
Core/Util: Remove EventMap's non-std::chrono::duration based interface ( #25049 )
...
Closes #25012
2020-07-15 10:05:11 +02:00
NoName
9fe6756cf2
Core/PacketIO: Updated corpse related packet structures ( #24922 )
...
# Conflicts:
# src/server/game/Entities/Player/Player.cpp
# src/server/game/Handlers/MiscHandler.cpp
# src/server/game/Handlers/QueryHandler.cpp
# src/server/game/Maps/MapManager.cpp
# src/server/game/Server/Packets/MiscPackets.cpp
# src/server/game/Server/Packets/QueryPackets.h
# src/server/game/Server/Protocol/Opcodes.cpp
# src/server/game/Server/Protocol/Opcodes.h
# src/server/game/Server/WorldSession.h
* + 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 >
2020-07-14 23:15:33 +02:00
Peter Keresztes Schmidt
0072fa922d
Scripts/World+Pet: Use std::chrono::duration overloads of EventMap ( #25017 )
...
Contributes to #25012
2020-07-14 21:15:15 +02:00
Peter Keresztes Schmidt
6968e7a1a1
Scripts/Icecrown Citadel: Use std::chrono::duration overloads of EventMap (Part 2) ( #25041 )
...
Part 2: gunship battle and Sindragosa
Contributes to https://github.com/TrinityCore/TrinityCore/issues/25012
2020-07-14 21:06:40 +02:00
Peter Keresztes Schmidt
5eaff8a3bc
Scripts/Icecrown Citadel: Use std::chrono::duration overloads of EventMap ( #25036 )
...
Part 1: without gunship battle and Sindragosa
Contributes to #25012
2020-07-14 21:03:06 +02:00
Peter Keresztes Schmidt
2d9c5979a6
Scripts/Tempest Keep: Use std::chrono::duration overloads of EventMap ( #25040 )
...
Contributes to #25012
2020-07-14 20:50:37 +02:00
Peter Keresztes Schmidt
f00ab389d6
Scripts/Utgarde Keep: Use std::chrono::duration overloads of EventMap ( #25039 )
...
Contributes to #25012
2020-07-14 20:48:08 +02:00
Peter Keresztes Schmidt
88314660b6
Scripts/Magisters Terrace: Use std::chrono::duration overloads of EventMap ( #25038 )
...
Contributes to #25012
2020-07-14 20:47:10 +02:00
Peter Keresztes Schmidt
bd837d4c3d
Core/CombatAI: Use std::chrono::duration overloads of EventMap ( #25037 )
...
Contributes to #25012
2020-07-14 20:46:18 +02:00
Peter Keresztes Schmidt
d4bce9f4d2
Scripts/Ulduar: Use std::chrono::duration overloads of EventMap ( #25035 )
...
Contributes to #25012
2020-07-14 20:43:43 +02:00
Peter Keresztes Schmidt
2f538258d9
Scripts/Nexus: Use std::chrono::duration overloads of EventMap ( #25033 )
...
Contributes to #25012
2020-07-14 20:23:24 +02:00
Peter Keresztes Schmidt
6eec0bc50f
Scripts/Naxxramas: Use std::chrono::duration overloads of EventMap ( #25032 )
...
Contributes to #25012
2020-07-14 20:19:42 +02:00
Peter Keresztes Schmidt
1a32b0f5b3
Scripts/Isle of Conquest: Use std::chrono::duration overloads of EventMap ( #25031 )
...
Contributes to #25012
2020-07-14 20:19:25 +02:00
Peter Keresztes Schmidt
3a9b3259b8
Scripts/Gundrak: Use std::chrono::duration overloads of EventMap ( #25030 )
...
Contributes to #25012
2020-07-14 20:17:59 +02:00
Peter Keresztes Schmidt
19ee4d6254
Scripts/Frozen Halls: Use std::chrono::duration overloads of EventMap ( #25029 )
...
Contributes to #25012
2020-07-14 20:16:01 +02:00
Peter Keresztes Schmidt
65e01053a8
Scripts/Drak'Tharon Keep: Use std::chrono::duration overloads of EventMap ( #25028 )
...
Contributes to #25012
2020-07-14 20:04:10 +02:00
Peter Keresztes Schmidt
42102871a7
Scripts/Chamber of Aspects: Use std::chrono::duration overloads of EventMap ( #25027 )
...
Contributes to #25012
2020-07-14 20:03:33 +02:00
Peter Keresztes Schmidt
5ed6c6a5c3
Scripts/Coilfang Reservoir: Use std::chrono::duration overloads of EventMap ( #25025 )
...
Contributes to #25012
2020-07-14 19:49:47 +02:00
Peter Keresztes Schmidt
d00c95f26f
Scripts/Hellfire Citadel: Use std::chrono::duration overloads of EventMap ( #25024 )
...
Contributes to #25012
2020-07-14 19:49:12 +02:00
Peter Keresztes Schmidt
1c3187e596
Scripts/Azjol-Nerub: Use std::chrono::duration overloads of EventMap ( #25026 )
...
Contributes to #25012
2020-07-14 19:48:24 +02:00
Shauren
7e5cf40d4c
Scripts/Mana Tombs: Fix Pandemonious Dark Shell event delay
2020-07-14 19:39:29 +02:00
Peter Keresztes Schmidt
4ad80434a2
Scripts/Auchindoun: Use std::chrono::duration overloads of EventMap ( #25023 )
...
Contributes to #25012
2020-07-14 19:37:51 +02:00
Peter Keresztes Schmidt
39fc17e284
Scripts/Outland: Use std::chrono::duration overloads of EventMap ( #25022 )
...
Contributes to #25012
2020-07-14 19:35:12 +02:00
Peter Keresztes Schmidt
29779db58b
Scripts/Northrend: Use std::chrono::duration overloads of EventMap ( #25021 )
...
Contributes to #25012
2020-07-14 19:32:28 +02:00
Peter Keresztes Schmidt
a2b2dc7ad0
Scripts/Trial of the Crusader: Use std::chrono::duration overloads of EventMap ( #25020 )
...
Contributes to #25012
2020-07-14 19:13:27 +02:00
Peter Keresztes Schmidt
5ef576d223
Scripts/EasternKingdoms: Use std::chrono::duration overloads of EventMap ( #25019 )
...
Contributes to #25012
2020-07-14 19:10:30 +02:00
Peter Keresztes Schmidt
ac27c922d1
Scripts/Blackrock Mountain: Use std::chrono::duration overloads of EventMap ( #25018 )
...
Contributes to #25012
2020-07-14 19:05:24 +02:00