Matthias Mailänder
ce357d5314
measure BuildDomains in perf.log
2014-11-01 15:12:36 +01:00
RoosterDragon
59b3cd154d
Change indexes into tile arrays to be stored as bytes to save memory.
...
The index value needs only be big enough to handle all defined terrain types. This is a low number so we can save memory by defining it as a byte. This particularly saves memory for the CustomTerrain field in the Map class, which defines a cell layer for the map using tile indexes, so we can reduce the size of that layer 4x as a result.
2014-10-09 20:03:01 +01:00
Chris Forbes
ea475ed39b
DomainIndex: Fix benign loop variable in closure hazard
...
This never outlived a single iteration of the neighbors loop.
2014-10-07 18:30:23 +13:00
reaperrr
8b5bd49095
Move ResourceClaim and ResourceClaimLayer to Mods.Common
2014-10-04 18:52:48 +02:00
reaperrr
9381386b7c
Move PlayMusicOnMapLoad to Mods.Common
2014-10-04 18:50:14 +02:00
reaperrr
c741fcedec
Move Smoke effect, ContrailFader effect, SmudgeLayer and LeaveSmudgeWarhead to Mods.Common
2014-10-04 18:48:07 +02:00
steelphase
2f87a62ee8
Mods.Common Widgets
...
Moved over Widgets that don't require a bunch of things to move.
2014-10-01 09:48:41 -04:00
Matthias Mailänder
8649475b91
document engine limitations
2014-08-24 08:16:59 +02:00
Matthias Mailänder
5b4f8d1446
unhardcode and self-document more resource/smudge parameters
2014-08-24 08:13:40 +02:00
Alexander Fast
070d00c678
Fixes year numbers in license text in file headers.
2014-08-21 11:27:52 +02:00
Paul Chote
0c607ffff2
Move legacy widgets into D2K project.
2014-07-26 18:20:10 +12:00
Paul Chote
1d77cd5391
Merge pull request #5851 from RoosterDragon/shroud-perf
...
Speed up shroud checks
2014-07-23 11:02:27 +12:00
Matthias Mailänder
1071a94d1d
document traits
2014-07-20 14:50:37 +02:00
Matthias Mailänder
ea478e8e7f
configurable and self-documenting BuildPaletteWidgetName
2014-07-20 13:54:29 +02:00
RoosterDragon
a512d9ad0a
Sped up shroud rendering.
...
- Only update shroud within the visible screen area, rather than the whole map. This improves performance on larger maps significantly when scrolling around since large portions of the shroud do not need to be updated.
- Provide methods in Shroud to return delegates to check for explored/visibility for tiles within a certain region. This allows it to return more efficient delegates whenever the region is within the map bounds, or shroud/fog is disabled. In the typical case where the region is in bounds and shroud/fog is enabled, the fast check is almost twice as fast as the slow check.
- Use the Shroud delegate functions in shroud rendering, frozen actors, minimap rendering and resource layer areas to provide a speedup since these areas of code can often take advantage of the fact they perform checks within the map boundary.
- Cache current element in CellRegionEnumerator to prevent repeated work if the element is accessed more than once.
- Decrease the size of elements in some arrays in hopes of reducing memory needs and improving cache hits.
2014-07-07 17:34:31 +01:00
Matthias Mailänder
0feb5a7bdc
check for building influence when growing resources
...
closes #5556
2014-07-04 09:22:14 +02:00
Paul Chote
7b52fa52b6
Replace CPos.CenterPosition -> Map.CenterOfCell.
2014-06-27 23:30:40 +12:00
Paul Chote
5560f276ca
Map: Rename IsInMap -> Contains.
2014-06-27 22:07:03 +12:00
Paul Chote
c5a13d4e65
Remove CellBounds from BuildableTerrainLayer and SmudgeLayer
2014-06-27 22:07:03 +12:00
Paul Chote
997216aef0
Use CellLayer for terrain.
2014-06-27 22:07:02 +12:00
Paul Chote
ce331a28e8
Use CellLayer for custom terrain.
2014-06-27 22:07:02 +12:00
Paul Chote
7c463c414c
Use CellLayer for DomainIndex.
2014-06-27 22:07:02 +12:00
Paul Chote
5a00757eab
Use CellLayers for pathfinder debug.
2014-06-27 19:20:46 +12:00
Paul Chote
ca082e3cec
Allow ProductionQueue to filter by race.
2014-06-26 23:14:13 +12:00
Matthias Mailänder
ea4cde0da8
document DomainIndex
2014-06-21 12:37:04 +02:00
RoosterDragon
22abf9b4c4
Remove and sort usings.
2014-06-18 21:43:35 +01:00
ScottNZ
90894aa03e
Use var everywhere
2014-06-15 22:17:34 +12:00
ScottNZ
dbffce81a6
Remove unused usings
2014-06-15 22:16:40 +12:00
Pavlos Touboulidis
c282fa1077
Move GetTerrainIndex/Info from WorldUtils to Map
2014-06-13 13:57:32 +03:00
Pavlos Touboulidis
092352729f
Change terrain type from string based dictionaries to arrays
2014-06-13 11:20:54 +03:00
Pavlos Touboulidis
0eac2afff4
Assign world from the constructor and make the field readonly
2014-05-17 14:33:17 +03:00
Pavlos Touboulidis
63ec6d60e7
Refactoring to remove static Rules & SequenceProvider
2014-05-17 14:32:03 +03:00
Pavlos Touboulidis
c28faffa45
Remove custom Stopwatch wrapper
...
Remove the redirection (that doesn't offer any new functionality)
and replace it with the familiar System.Diagnostics.Stopwatch.
2014-04-26 23:58:18 +03:00
Pavlos Touboulidis
035834978d
Make Stopwatch.ElapsedTime() a property and TimeSpan
2014-04-23 00:56:07 +03:00
Paul Chote
4935266945
Merge FileFormats dll into Game and reorganise namespaces.
2014-04-17 01:20:47 +12:00
Paul Chote
50d89629a2
Add BuildableTerrainLayer and LaysTerrain traits.
2014-03-18 15:28:49 +13:00
Paul Chote
20b88fd904
Remove World.FrameNumber.
2014-03-12 17:19:29 +13:00
ScottNZ
0a9a959ecf
Change spacebar key to move to the last visible radar ping location
2014-02-22 00:07:54 +13:00
ScottNZ
2a8efde8e6
Add map beacons and radar pings
2014-02-22 00:07:53 +13:00
Paul Chote
8c7f77d2c7
Convert SmudgeLayer to sequences.
2013-12-11 22:53:33 +13:00
Paul Chote
473f8dfbb8
Fix an off-by-one error in SmudgeLayer. Fixes #4139 .
2013-12-03 18:16:40 +13:00
ScottNZ
1394c1dcee
Remove some misc redundancies
2013-11-12 19:39:39 +13:00
ScottNZ
f1f1a2b166
Add missing license notice to ResourceClaim.cs
2013-11-12 19:39:38 +13:00
ScottNZ
00ec1ca87a
Remove unused usings
2013-11-12 19:39:33 +13:00
Paul Chote
d864989c19
Tidy PathfinderDebugOverlay.
2013-10-14 21:18:50 +13:00
Paul Chote
68cd537c9b
Rename DebugOverlay -> PathfinderDebugOverlay.
2013-10-14 21:16:46 +13:00
Paul Chote
97a42e7d43
Fix A* debug overlay in D2K.
2013-10-14 21:14:21 +13:00
Paul Chote
919181e04d
Clean up viewport internals.
2013-10-05 21:01:22 +13:00
Paul Chote
0b560bfc6e
Move more viewport lookups to WorldRenderer.
2013-10-05 21:01:21 +13:00
Paul Chote
3002c4b77d
Use SpriteRenderables for tile overlays.
2013-09-27 15:41:33 +12:00