RoosterDragon
c75a866f0d
Lazily allocate sheet builder in ModelRenderer.
...
Avoid allocating the sheet builder each frame until it is needed. For mods that do not need to render models, this avoids allocating a large buffer and backing sheet as it will never render to the sheet. For mods that do render models, but don't need any this frame, this avoids allocating a new SheetBuilder that will not be used.
2017-12-11 01:44:21 +01:00
RoosterDragon
ec84b61316
Reduce memory required in MovementClassDomainIndex
...
The number of distinct domains on a map is often dozens, or at most hundreds. We can use a ushort to represent this easily, and reduce the size of the backing storage required to track domain indicies over the whole map.
2017-12-11 01:41:07 +01:00
RoosterDragon
2dd1bd2d39
Initialize map inverse cell projections with capacity 1.
...
This prevents the capacity being set to 4 when the first item is added. For flat maps, the inverse projection will only ever be of size 1, thus this is sufficient capacity. For isometric maps, 1 is often sufficient, we only need more near height changes where the discontinuity means multiple cells may project back. We can pay for some reallocations to expand the size in these cases.
On flat maps, this reduces the memory required by the backing array 4x.
2017-12-11 01:38:17 +01:00
RoosterDragon
8ef8c60a1a
Remove allocations when enumerating sync hashes on an actor.
...
Exposing Actor.SyncHashes as an array allows allocation free enumeration, we just need to adjust the SyncHash type to run the hash function.
2017-12-10 13:49:52 +00:00
RoosterDragon
5338784e45
Fix bad uses of FirstEnabledTraitOrDefault on TraitInfos.
...
These are not traits so this method does not work. We can use EnabledByDefault on the ConditionalTraitInfo instead.
2017-12-10 13:39:24 +00:00
RoosterDragon
7a7eed4fb7
Add FirstEnabledTraitOrDefault helper method.
...
This avoids the allocations caused by LINQ when using traits.FirstOrDefault(Exts.IsTraitEnabled). This is important in FrozenActorLayer.RefreshState which is called very often. We apply the new helper method to all areas using the old pattern. An overload that takes an array allows arrays to be enumerated without causing allocations.
2017-12-10 13:39:24 +00:00
Paul Chote
cb670d83b3
Set PredictedStance when changing stance from Lua.
2017-12-08 01:54:55 +01:00
reaperrr
1a20dd15cb
Fix D2k hightech factory sprite offsets
...
To match original.
2017-12-08 02:41:11 +02:00
reaperrr
2218b1a078
Fix terrain type of d2k tile #401
2017-12-08 02:41:11 +02:00
reaperrr
ce88d50d9c
Fix offset and animation speed of D2k refinery smoke overlay
2017-12-08 02:41:11 +02:00
Paul Chote
7ebea32be9
Remove hardcoded settings backend.
2017-12-08 01:29:15 +01:00
Paul Chote
eb3ab682e8
Remove unused hotkeys from each mod.
2017-12-08 01:29:15 +01:00
Paul Chote
b4c5346346
Migrate hotkey linter to HotkeyManager.
2017-12-08 01:29:15 +01:00
Paul Chote
74c390d1d0
Migrate input settings to HotkeyManager.
2017-12-08 01:29:15 +01:00
Paul Chote
2f79173044
Migrate hotkey consumers to HotkeyManager.
2017-12-08 01:29:15 +01:00
Paul Chote
35a3df3736
Duplicate default hotkeys in yaml.
2017-12-08 01:29:15 +01:00
Paul Chote
f98907f42e
Add HotkeyManager class.
2017-12-08 01:29:15 +01:00
Paul Chote
811427adc4
Add HotkeyReference.IsActivatedBy method.
2017-12-08 01:29:15 +01:00
Paul Chote
c4237d6a1a
Rename NamedHotkey to HotkeyReference.
2017-12-08 01:29:15 +01:00
abcdefg30
6dd42f7ab1
Replace bogus ROF values in missions
2017-12-07 20:44:41 +02:00
RoosterDragon
62ab6ae6f1
OccupiedCells and TargetableCells must return arrays, not just enumerables.
...
This allows callers to efficiently enumerate these returned collections without the allocation and overhead imposed by the IEnumerable interface. All implementations were already returning arrays, so this only required a signature change.
2017-12-07 20:39:30 +02:00
FrameLimiter
da036c5728
Fixes EditorTilesetFilter for T04 cactus
2017-12-05 21:32:28 +01:00
Smittytron
3d8ab75faf
RA Balance changes (December 2017)
2017-12-05 12:38:13 +01:00
Paul Chote
9d2935935c
Add a debug visualization for screen map rectangles.
2017-12-04 23:10:23 +01:00
Paul Chote
0f512088d2
Unify ingame-debug.yaml.
2017-12-04 23:10:23 +01:00
Paul Chote
1a1c6368fc
Fix ScreenMap handling of flipped sprites.
2017-12-04 03:54:23 +02:00
Arular101
1b94378f71
Disable the new build radius lobby option for minigames
2017-12-02 20:26:23 +01:00
Mustafa Alperen Seki
f4086e4fe0
Update one of the dead worm tiles
2017-12-02 05:18:19 +01:00
Pavel Penev
77ae802b9c
Added D2k asset installer d2k-e
2017-12-02 00:08:50 +01:00
Pavel Penev
8f5787a57f
Added D2k asset installer d2k-d
2017-12-02 00:08:50 +01:00
Pavel Penev
45a2f5e6c1
Added D2k asset installer d2k-c
2017-12-02 00:08:50 +01:00
Pavel Penev
649971d517
Renamed D2k asset installers to systematize namings
2017-12-02 00:08:50 +01:00
Pavel Penev
450cbeea96
Added an extra bit of installer data to Install.log
2017-12-02 00:08:50 +01:00
Pavel Penev
e09d502ce1
Make mod launchers run the game inside a child launcher instead of via OpenRA.Game.exe
...
This also removes the need to manually set application icons on Windows.
2017-12-02 00:05:57 +01:00
Pavel Penev
bd67bd24c0
Pull out game loop initialization from OpenRA.Program into OpenRA.Game and exception handling into its own class under OpenRA.Game/Support
2017-12-02 00:05:57 +01:00
abcdefg30
f249554b4f
Fix swapped waypoint naming in Survival 01
2017-11-30 02:00:43 +01:00
abcdefg30
53dabfeb49
Move all waypoints of Survival 01 inside the map bounds
2017-11-30 02:00:43 +01:00
abcdefg30
3a94312fcd
Move all waypoints of Evacuation inside the map bounds
2017-11-30 02:00:43 +01:00
abcdefg30
616ee6cce4
Remove a misplaced camera actor
2017-11-30 02:00:43 +01:00
RoosterDragon
6a97502e09
Reuse buffers when loading Xcc databases.
...
We can reuse the list as a buffer when reading strings to avoid throwaway allocations, which will reduce GC pressure during loading.
2017-11-30 02:16:51 +02:00
reaperrr
c48ddbdfa5
Fix Mammoth Mk2 render bounds
...
And polish trait internals a little.
2017-11-29 11:39:24 +02:00
reaperrr
d21992130a
Fix TS harvester render bounds
2017-11-29 11:39:24 +02:00
Paul Chote
4994716cf7
Ignore empty children when aggregating EventBounds.
2017-11-27 16:09:34 +02:00
dsimmons87
65a2410738
Fixed bug in map Retry Install
...
If the download failed, the map status would be MapStatus.DownloadError,
which would cause the Install method to return immediately. I've updated
the Install method now to account for MapStatus.DownloadError.
2017-11-27 15:18:33 +02:00
Paul Chote
8fea476a0d
Fix NRE when ProvidesPrerequisite is defined on the player actor.
2017-11-26 19:51:46 +01:00
abcdefg30
ed67cea852
Fix a crash in Disguise.cs when order.TargetActor is null
2017-11-26 18:41:53 +01:00
abcdefg30
c83dda4ce7
Initialize AsActor as self.Info
2017-11-26 18:41:53 +01:00
abcdefg30
4c707ad6a6
Fix WithDisguisingInfantryBody crashing when losing the disguise
2017-11-26 18:41:53 +01:00
Arular101
02d57c5fee
Soviet05 Radar Reveal
...
Added beacon and message
2017-11-26 17:26:57 +01:00
Mustafa Alperen Seki
2043576857
Add Modified Outpost tooltip to Ordos4.
2017-11-26 16:53:17 +01:00