Commit Graph

15236 Commits

Author SHA1 Message Date
Chris Forbes
507fe66f78 Merge pull request #7288 from RoosterDragon/faster-depth-sorting
Speed up depth sorting of renderables.
2015-01-08 14:22:20 +13:00
Chris Forbes
0a493df4c1 Merge pull request #7281 from RoosterDragon/cache-render-traits
Cache render related TraitsImplementing calls in Actor.
2015-01-08 14:13:11 +13:00
RoosterDragon
69c409c20d Speed up depth sorting of renderables.
The OrderBy overload that takes an int generating key selector is faster than the one that requires a custom comparer. We extract a function from the ScreenZPosition function that determines the Z position of a WPos with an offset, but does not account for the tileset height. For the ordering function this is fine as only the relative magnitude of the comparison keys matter, so we don't need to spend time adjusting for the tileset height, as that won't affect the sort.
2015-01-07 18:22:38 +00:00
Igor Popov
40c9d0a47d Merge pull request #7275 from RoosterDragon/formatting
Formatted all files.
2015-01-07 13:56:04 +03:00
Paul Chote
3667ebb7ca Merge pull request #7203 from RoosterDragon/reduce-server-footprint
Avoid initialization of graphical elements for a server.
2015-01-07 10:34:59 +13:00
RoosterDragon
a6cda967c2 Formatted all files.
Automatically formatted all files via VS. This generally corrects indentation, removes trailing whitespace and corrects misplaced tabs or spaces. Manually tweaked a few files where required.
2015-01-06 21:28:50 +00:00
Matthias Mailänder
282f76c1c1 Merge pull request #7256 from obrakmann/td-lobby-headers
Fix incorrect name for lobby headers container in TD
2015-01-06 22:08:16 +01:00
Oliver Brakmann
6468c0b6e6 Merge pull request #7266 from reaperrr/stylecop-make
Add StyleCop checks for Game, Editor and Mod dlls to make.ps1
2015-01-06 21:05:36 +01:00
Matthias Mailänder
eef3c548b8 Merge pull request #7286 from abcdefg30/d2kfix
Closes #7283
Closes #7285
2015-01-06 20:44:41 +01:00
abcdefg30
84c2fdf9a9 Remove Buildable: from corrino buildings 2015-01-06 11:53:35 +01:00
abcdefg30
72a8951738 Fix sardaukars targeting air units 2015-01-06 11:43:11 +01:00
RoosterDragon
dc4d522967 Cache render related TraitsImplementing calls in Actor.
The TraitsImplementing<T> performs a dictionary lookup to match up its generic type parameter with the right trait collection. Since actors are rendered so much, it is useful to cache this result to avoid looking it up repeatedly.
2015-01-05 21:05:19 +00:00
reaperrr
dd90409b3d Document make check in Makefile 2015-01-05 20:49:20 +01:00
reaperrr
192ae175a6 Add StyleCop checks for mod dlls to make.ps1 2015-01-05 20:49:19 +01:00
Matthias Mailänder
e353fe5263 Merge pull request #7271 from reaperrr/ra-common27
Moved more traits & activities to Mods.Common
2015-01-05 20:35:21 +01:00
Oliver Brakmann
6a0363d482 Merge pull request #7265 from pchote/fix-lag-crash
Fix a race condition in the map download code.
2015-01-05 18:44:13 +01:00
Oliver Brakmann
ee50aec55a Fix incorrect name for lobby headers container in TD
...which caused the headers to still be visible when the options bin was open.

Also moves the "Map Options" title to the same place the headers occupy,
to above the options bin.
2015-01-05 18:40:46 +01:00
RoosterDragon
2c34358372 Avoid initialization of graphical elements for a server.
Avoid allocating memory and resources for graphical elements that will never be drawn when starting a dedicated server. This reduces the server memory footprint by approx 17 MiB.
2015-01-04 19:22:41 +00:00
Oliver Brakmann
58dc61e6ed Merge pull request #7262 from RoosterDragon/actormap-partitioning
Fix ActorMap spatial partitioning to actually work.
2015-01-04 18:48:01 +01:00
reaperrr
573c26145e Move Render*Circle, ThrowsParticle and ParatroopersPower to appropriate locations 2015-01-04 18:12:11 +01:00
reaperrr
7a8826f5e0 Move Targetable*, Seeds/StoresResource(s) and two RenderBuilding traits to Mods.Common 2015-01-04 18:12:10 +01:00
reaperrr
b7a3b9fdbf Move ScaredyCat, TakeCover, RenderInfantry, WithBuildingExplosion and SpawnMPUnits as well as Hunt activity to Mods.Common. 2015-01-04 18:12:09 +01:00
reaperrr
d07db9c6a9 Move Guard, CashTrickler, Explodes, SelfHealing, Sellable and Crushable to Mods.Common.
Extract Guardable trait from Guard into own file.
2015-01-04 18:12:08 +01:00
Oliver Brakmann
dbbc790dab Merge pull request #7270 from Mailaender/mods-ra-stylecop
StyleCop clean OpenRA.Mods.RA and enforce rules with Makefile
2015-01-04 17:45:20 +01:00
Oliver Brakmann
302cf44f5a Merge pull request #7267 from atimoschenkow/fix-selection-after-radar
Selection rectangle is drawn after exiting radar widget while dragging the viewport
2015-01-04 17:23:08 +01:00
atimoschenkow
831f19e993 A selection box is drawn if the mouse exits the radar widget while dragging the viewport.
These changes prevent this side effect.
2015-01-04 17:06:50 +01:00
Matthias Mailänder
1b0e3a7a7f StyleCop clean OpenRA.Mods.RA 2015-01-04 17:02:46 +01:00
Oliver Brakmann
75808c365a Merge pull request #7269 from abcdefg30/general-polish
Some general polish
2015-01-04 16:54:37 +01:00
reaperrr
2691f16a81 Merge pull request #7268 from Mailaender/stylecop-game-final
StyleCop clean OpenRA.Game Part 2 and enforce rules with Makefile
2015-01-04 15:47:54 +01:00
Matthias Mailänder
bc3acfeee7 StyleCop clean OpenRA.Game 2015-01-04 15:38:54 +01:00
Matthias Mailänder
d2d715765c Merge pull request #7263 from reaperrr/ra-common26
Moved Armament, Attack, Move, Air features and dependencies to Mods.Common
2015-01-04 15:33:16 +01:00
reaperrr
cb3ba37462 StyleCop fixes 2015-01-04 15:02:19 +01:00
Oliver Brakmann
580e0fc0df Merge pull request #7147 from penev92/bleed_enrichDune2kResources
Add more resources to the D2k mod
2015-01-04 14:18:38 +01:00
Oliver Brakmann
4cdf1b73c4 Merge pull request #7167 from MatthijsBenschop/d2k-carryall-extras
Some carryall fixes
2015-01-04 14:11:13 +01:00
abcdefg30
4fed02cd74 Make health bars 2 pixels shorter 2015-01-04 13:07:55 +01:00
abcdefg30
be5fc0bc27 Return from skirmish lobby to singleplayer menu instead of main menu 2015-01-04 13:06:06 +01:00
abcdefg30
f2e224dd72 Fix a crash in RemoveProximityTrigger 2015-01-04 13:06:06 +01:00
abcdefg30
98aed777d0 Improved legacy map import
Health: 1 and Facing: 0 will be omitted.
2015-01-04 13:06:05 +01:00
abcdefg30
e4c562ca53 Oppress undesired messages about difficulty changes 2015-01-04 13:06:04 +01:00
Paul Chote
a7ae72a7bb Fix a race condition in the map download code.
Fixes #7264.
2015-01-04 19:25:43 +13:00
reaperrr
654f56c5d5 Moves Attack, Armament, Move, Air traits and activities as well as anything required by them to Mods.Common.
Extracts Exit from Production into its own trait.
2015-01-04 05:24:28 +01:00
RoosterDragon
a0737ccbf3 Fix ActorMap spatial partitioning to actually work.
The bin partitioning in ActorMap worked by dividing the map up into a few chunks of cells, each of which would contain some actors. Unfortunately, the bins were accessed directly in world coordinates which are on a scale 1024x greater than cell coordinates. This lead to all actors being placed into the bottom right bin. When checking for actors in a box, only this bottom right bin would be iterated for actors. Thanks to the fact this bin indeed contained all the actors, some clamps on the input ranges and filtering required per bin anyway, this actually returned correct results. Effectively, it was as if there was no spatial partitioning at all.

Not surprisingly however, this is fairly inefficient. By correcting the spatial partitioning to actually partition we see a 7x speedup in ActorsInBox on the RA shellmap.
2015-01-04 02:35:16 +00:00
Oliver Brakmann
9e0bd02e39 Merge pull request #7253 from Mailaender/utility-check-verbosity
Tweaked the StyleCop utility output
2015-01-04 01:06:43 +01:00
Oliver Brakmann
158517c09f Merge pull request #7251 from Mailaender/stylecop-clean-game
StyleCop cleaned OpenRA.Game Part 1
2015-01-04 01:00:56 +01:00
reaperrr
eb33d72a70 Merge pull request #7254 from penev92/bleed_moveFiles
Moving more files to Common
2015-01-04 00:46:11 +01:00
Matthias Mailänder
f02e30a797 Merge pull request #7260 from RoosterDragon/fix-pathsearch-cache
Fix broken pathing
2015-01-03 23:52:05 +01:00
Matthijs Benschop
3c49364b57 Fix harvesters doing nothing after being dropped of by a carryall 2015-01-03 22:44:41 +01:00
Matthijs Benschop
740595064a The carryable should not unreserve itself 2015-01-03 22:44:41 +01:00
Matthijs Benschop
0868558e94 Allow a carryable to change his destination after being reserved 2015-01-03 22:44:41 +01:00
RoosterDragon
c7b4eff89a Ensure the whole path search cache is initialized.
The region covered by map.Cells may not cover the whole map size, but we need the whole cache initialized so it can be used correctly when a different map is used, because that map may have the same size but a different offset which means a different region is covered.
2015-01-03 20:07:04 +00:00