RoosterDragon
8fb65fd9bf
Use string pooling in MiniYaml to de-duplicate strings in memory.
...
These config files often contain many repeated strings which result in different string references in memory. By using a pool, we can detect when the strings are equal and reuse an existing reference as strings are immutable.
The FromLines will now use a pool to de-duplicate strings for a single call. By allowing a pool to be provided as a parameter, we can reuse even more strings. The MapCache defines such a pool so that strings are reused across all maps in the cache for even more savings.
2020-10-12 21:57:08 +02:00
RoosterDragon
9072d645fd
Use TrimExcess to shrink lists used by MiniYaml after loading
2020-10-12 21:57:08 +02:00
Paul Chote
597b8b1caa
Hide legacy GL support behind a feature flag.
2020-10-12 12:24:22 +02:00
Paul Chote
2c0d512727
Package and default to GLES via ANGLE on windows.
2020-10-12 12:24:22 +02:00
Paul Chote
87c5cc96ad
Add an "Automatic" GL profile.
2020-10-12 12:24:22 +02:00
Paul Chote
1ddbe50b3f
Add inline node inclusion support to mod.yaml.
2020-10-11 01:42:59 +02:00
Paul Chote
dd7b8b24af
Use tileset ID in sequences instead of the TileSet object.
2020-10-11 01:23:15 +02:00
reaperrr
f67b7ad837
Cache IResolveOrder traits on Actor
...
Avoids looking up all of them each time
an actor is given an order.
2020-10-10 13:59:40 +01:00
reaperrr
a4a409f39b
Pass world directly to UnitOrders.ResolveOrder
...
Avoids order.Subject.World look-ups.
Also removes validOrders parameter,
we can get that directly from World now.
2020-10-10 13:59:40 +01:00
reaperrr
904a5f60d1
Cache IOrderValidator traits on World
2020-10-10 13:59:40 +01:00
Clément Bœsch
815bbc6ee8
Save disconnect frame in the GameInformation
...
This information is useful to infer a winner in case the winstate is
unknown.
2020-10-10 01:17:39 +02:00
Clément Bœsch
ca8870a5cf
Server: handle wins/losses using Sync hash
...
Signed-off-by: Paul Chote <pchote@users.noreply.github.com >
2020-10-10 01:17:39 +02:00
Clément Bœsch
e5da58e2b4
Server: add basic replay recording
...
Signed-off-by: Paul Chote <pchote@users.noreply.github.com >
2020-10-10 01:17:39 +02:00
Paul Chote
dd18829def
Traits: add ICreatePlayersInfo
...
Signed-off-by: Clément Bœsch <u@pkh.me >
2020-10-10 01:17:39 +02:00
Paul Chote
41814a881d
Player: move player name resolve in a dedicated function
...
Signed-off-by: Paul Chote <pchote@users.noreply.github.com >
2020-10-10 01:17:39 +02:00
Clément Bœsch
d708f46d50
Orders: make SyncHash packet size check more accurate
2020-10-10 01:17:39 +02:00
Clément Bœsch
11f57b2b26
Protocol: add defeat state bitfields to Sync packets
...
Signed-off-by: Paul Chote <pchote@users.noreply.github.com >
2020-10-10 01:17:39 +02:00
Trevor Nichols
6f32196f89
Support List<> for FieldSaver/FieldLoader
2020-10-07 22:04:10 +02:00
Paul Chote
0672553a07
Lock Server.LobbyInfo to prevent races with callback threads.
2020-10-04 20:31:07 +02:00
abcdefg30
e4e1878a4b
Remove an used TerrainTemplateInfo constructor
2020-10-02 12:09:42 +02:00
abcdefg30
1a4b773fda
Replace 'is' by 'as' and a null check in ScriptMemberWrapper
2020-09-27 22:17:20 +02:00
Matthias Mailänder
930f8ab207
Reset lobby ready state when options change server side.
2020-09-27 15:06:48 +02:00
abcdefg30
82a2148300
Fix grouped orders not being validated correctly
2020-09-15 10:16:50 +02:00
Paul Chote
7f7bce50dc
Add dictionary support for ActorReference.
2020-09-15 09:27:50 +02:00
Paul Chote
ad4d6eaec9
Improve --check-missing-sprites error handling.
2020-09-12 17:52:46 +02:00
Paul Chote
ac8b312140
Generalize --check-sequence-sprites to --check-missing-sprites.
2020-09-12 17:52:46 +02:00
Paul Chote
3e849568ff
Improve exception message for bogus tileset definitions.
2020-09-12 17:52:46 +02:00
Paul Chote
94180f6a0a
Add SequenceReference support for dictionaries.
2020-09-12 17:52:46 +02:00
Paul Chote
7803686aec
Rewrite sequence linting / missing file handling.
...
- Distinguish between missing sequences and missing sprites
- Lint default sequences as well as maps
- Improved performance
- Correctly handle null images
2020-09-12 17:52:46 +02:00
Paul Chote
ffdb3f86d7
Move mod-specific lint attributes to Mods.Common.
2020-09-12 17:52:46 +02:00
Paul Chote
9cd6df2929
Replace DecorationPosition with mod-defined string ids.
2020-09-09 23:16:05 +02:00
Matthias Mailänder
b16cbeacb6
Sort contents before merging to unify UIDs across filesystems.
2020-09-07 17:25:24 +02:00
teinarss
2cf6b74295
Refactoring on GetEventBounds in Widget
2020-09-01 17:56:12 +02:00
Aigamo
06a1c88e86
Replace 0x7FFFFFFF with int.MaxValue
2020-08-29 12:37:20 +01:00
ycanardeau
f358b566b1
Replace NetFrameNumber >= 1 with GameStarted
2020-08-29 12:37:20 +01:00
Paul Chote
6cfa27c33b
Replace per-color font caches with tinted rendering.
2020-08-24 18:38:08 +02:00
Paul Praet
9a6f3b4c05
Reset Ready status of players in Lobby when options change
...
Addresses #11274
2020-08-23 00:05:55 +03:00
teinarss
9c4fd0e3d3
Use Null-Propagation Operator
2020-08-19 18:11:07 +01:00
teinarss
8d27d22100
Use discard syntax
2020-08-19 18:11:07 +01:00
teinarss
27f1a7ab27
Use out var syntax
2020-08-19 18:11:07 +01:00
teinarss
d52e4793fe
Refactor classes to structs
2020-08-19 11:54:29 +02:00
Paul Chote
06fbc1a6cf
Hide TraitInfo.InstanceName from FieldLoader.
2020-08-17 20:13:32 +02:00
Paul Chote
c4b4a8c8a5
Fix incorrect ramp fill in Map.Resize.
2020-08-16 14:17:45 +02:00
abcdefg30
07d58337f1
Let order generators account for selection changes
2020-08-15 11:34:00 +01:00
teinarss
19b02875c7
Use Tuple syntax
2020-08-15 10:37:10 +01:00
Paul Chote
70a86bed7a
Optimize WRot negation.
...
The conjugate of a quaternion just negates the x/y/z components, so
there is no need to recalculate from scratch and throw away precision
by forcing a quat->euler->quat round trip.
2020-08-09 19:43:53 +02:00
Matthias Mailänder
3a427c3630
Add a sequence reference attribute to label fallbacks.
2020-08-02 22:15:13 +02:00
Andre Mohren
006a87692a
Removed unused imports.
2020-07-28 18:22:51 +02:00
Matthias Mailänder
3a9b35980c
Revert "Reduce order latency locally"
...
This reverts commit 20e5219cf4 .
2020-07-21 21:58:31 +02:00
Matthias Mailänder
150439d215
Revert "Change where we send orders"
...
This reverts commit 616d9421d6 .
2020-07-21 21:58:31 +02:00