RoosterDragon
d9dd96ca35
Speed up Map.ContainsAllProjectedCellsCovering on flat maps.
...
This method gets called often via Contains calls. We can significantly speed up the method for flat maps since we know the projection and it is trivial to perform. This avoids an expensive projection lookup.
2015-08-31 20:45:32 +01:00
RoosterDragon
dab53f403d
Provide a hand-written enumerator for ActorMap.GetUnitsAt(CPos).
2015-08-31 20:43:19 +01:00
RoosterDragon
18478646d4
Avoid multiple ToMPos calls in ActorMap.
2015-08-31 20:43:18 +01:00
RoosterDragon
4eacb6e5c9
Transparently cache results of GetTerrainIndex in Map.
...
This method performs an expensive calculation and is called often during pathfinding. We create a cache of the terrain indicies for the map to vastly reduce the cost.
2015-08-31 20:43:17 +01:00
RoosterDragon
fa87befeff
Add missing CellEntryChanged checks.
2015-08-31 20:43:16 +01:00
Matthias Mailänder
72dffe3391
dispose res properly
2015-08-29 18:47:10 +02:00
Matthias Mailänder
9c1eeafa08
Merge pull request #9004 from reaperrr/quanbo
...
Introduce QuantizeFacingsFromSequence
2015-08-28 22:46:29 +02:00
RoosterDragon
2f9ca36506
Update WeaponInfo to use HashSets for some fields directly.
2015-08-27 21:48:12 +01:00
RoosterDragon
5a177a889c
Add ability to load and save HashSets.
2015-08-27 21:48:09 +01:00
RoosterDragon
410b97823a
Ensure our array handling only accepts single dimensional arrays.
2015-08-27 21:31:24 +01:00
reaperrr
18b8eb30a3
Merge pull request #9134 from clemty/docs
...
minor LUA and trait documentation fixes, whitespace fixes
2015-08-24 21:26:20 +02:00
abcdefg30
b9f4431ed0
Merge pull request #9151 from penev92/bleed_summaries
...
Add a bit of code documentation
2015-08-24 21:18:11 +02:00
clemty
2bbc1fcda4
LUA and trait documentation fixes
...
- Typo in documentation ("proximitry").
- Add spaces between sentences.
- Remove most occurrences of " " (two spaces) unless clearly used as indendation
- Punctuation (although no fullstop after filenames like "notifications.yaml").
2015-08-24 19:41:15 +02:00
Matthias Mailänder
6132ec6558
Merge pull request #9150 from penev92/bleed_dedicatedSound
...
Make lower-level Sound not require the server state directly
2015-08-24 06:44:51 +02:00
Pavel Penev
02dd5afbd9
Merge pull request #9058 from RoosterDragon/reduce-alloc
...
Reduce allocations in the main game loop
2015-08-24 02:11:08 +03:00
reaperrr
006e66a3c3
Refactored IQuantizeBodyOrientation implementation
...
Moved BodyOrientation and related interfaces from Game to Mods.Common.
Introduced QuantizeFacingsFromSequence trait.
With*Body render traits no longer implement IQuantizeBodyOrientation
themselves.
2015-08-24 00:48:56 +02:00
Pavel Penev
09a41d8bde
Add a bit of code documentation
2015-08-24 01:47:35 +03:00
Pavel Penev
49e9ad2c7c
Make lower-level Sound not require the server state directly
2015-08-24 01:36:56 +03:00
Pavel Penev
1d3cfcf378
Merge pull request #8632 from Mailaender/openra-platform
...
Removed the OpenAL/OpenGL/SDL2 dependency from the game engine
2015-08-24 00:45:27 +03:00
Pavel Penev
535863ea83
Merge pull request #9147 from Mailaender/exception-log-map
...
Added the current map to the exception.log
2015-08-24 00:29:52 +03:00
Matthias Mailänder
001d2cde30
add the map to the exception.log
2015-08-23 22:27:00 +02:00
Matthias Mailänder
bec209085b
Merge pull request #7873 from penev92/bleed_raceToFaction
...
Replace old "country" and "race" name in the code with the generic "faction"
2015-08-23 17:49:40 +02:00
Matthias Mailänder
f7b0454b9e
avoid an unnecessary overload
2015-08-23 07:58:07 +02:00
Matthias Mailänder
17f3466451
untie the engine from SDL2 and MiniTK
2015-08-23 07:58:03 +02:00
Pavel Penev
09f67d18bb
Some internal "race" to "faction" renaming
2015-08-22 23:34:36 +03:00
abcdefg30
87580d0aab
Add a GpsRemoveFrozenActor trait
2015-08-22 21:36:30 +02:00
Matthias Mailänder
9a861bdfba
Merge pull request #8700 from deniz1a/rename-disable-shroud
...
Renames "Disable Shroud & Fog" debug option to "Observer view".
2015-08-20 20:41:01 +02:00
RoosterDragon
d415d3ba4e
Reduce allocations in the main game loop.
...
- Cache the shroud projection even for flat maps to avoid allocating single element arrays.
- Avoid LINQ in shroud and map projection queries to avoid enumerator allocations.
- Avoid LINQ in calculation of sync values.
- Cache enumerables in ProductionQueue.
- Cache delegate in HackyAI.
2015-08-18 21:17:28 +01:00
Matthias Mailänder
118782a85e
check palette references
2015-08-17 21:36:45 +02:00
Matthias Mailänder
ba8e292b71
Merge pull request #9022 from RoosterDragon/less-sync
...
Sync only once per tick
2015-08-17 21:13:55 +02:00
Matthias Mailänder
dc477c3ced
add missing sequence reference
2015-08-15 09:59:53 +02:00
Matthias Mailänder
9dabf9019f
Merge pull request #9026 from baxxxster/bleed
...
Changed TimestampFormat for server logs
2015-08-13 21:16:23 +02:00
abcdefg30
dae70321c2
Merge pull request #8792 from deniz1a/reveal-shroud
...
Changes shroud lobby setting from disabling shroud to revealing it.
2015-08-12 22:04:15 +02:00
Glenn Martin Jensen
441f23d1e6
Changed TimestampFormat for server logs
...
Changed TimestampFormat for server logs
2015-08-10 16:53:51 +02:00
RoosterDragon
89f5a23077
When dumping the sync report, log all the orders issued in the frame that desynced.
2015-08-09 20:59:59 +01:00
RoosterDragon
709befda08
Sync only once per tick, rather than once per tick and once per order.
...
This greatly improves performance by not syncing the world state for every single order processed as this becomes very expensive, at the cost of being unable to directly pinpoint the order that causes a desync. Instead the granularity of detecting desyncs is reduced to the tick level.
2015-08-09 20:58:20 +01:00
RoosterDragon
a0117a3890
Add a method to look up actors by ID.
...
This can be used to speed up some methods.
2015-08-09 20:25:34 +01:00
Matthias Mailänder
88b98fa8ef
Merge pull request #8975 from penev92/bleed_rename
...
Some more renaming from "country" and "race" to "faction"
2015-08-08 16:13:16 +02:00
abcdefg30
c9837280b9
Merge pull request #8971 from Mailaender/chmod-x
...
Removed executable bits from random files in the repository
2015-08-06 18:17:22 +02:00
Matthias Mailänder
e428e6d8cc
remove executable bits from source code
2015-08-06 18:05:50 +02:00
Matthias Mailänder
6c45763d75
avoid observers being allied to world owning neutral players
2015-08-05 22:35:28 +02:00
Pavel Penev
faf0da6994
Rename Session.Slot.LockRace
2015-08-05 18:11:10 +03:00
Pavel Penev
5eaf5b5b51
Rename Session.Client.Race
2015-08-05 17:45:56 +03:00
Paul Chote
710a32d1ce
Extract ScrollPanel tooltip workaround into common code.
2015-08-05 09:11:19 +01:00
Paul Chote
c1fcd5fb47
Prevent shroud from being revealed outside the map cordon.
...
Fixes #8947 .
2015-08-04 23:12:19 +01:00
abcdefg30
3ec874db31
Revert "Sync inherited members."
...
This reverts commit cfd2f265d5 .
2015-08-04 17:24:59 +02:00
deniz1a
7efbf0633e
Changes shroud lobby setting from disabling shroud to revealing it.
2015-08-04 17:31:06 +03:00
abcdefg30
d0fb08a48c
Merge pull request #8920 from pchote/fix-map-border
...
Account for disabled shroud/fog in ShroudRenderer.
2015-08-04 12:27:26 +02:00
abcdefg30
6183691828
Merge pull request #8894 from pchote/fix-projection-init
...
Lazily initialize cell projection mapping.
2015-08-04 12:13:37 +02:00
Paul Chote
71576f9ab1
Merge pull request #8858 from RoosterDragon/sync-inherited
...
Sync members of base classes
2015-08-03 21:15:46 +01:00