RoosterDragon
82bea961ba
Checked LINQ queries and collections for inefficiencies.
...
- Made Array.IndexOf available via extension method.
- Made ToHashSet extension method.
- Change collections queried often via Contains into sets.
- Avoid Count() extension if Count or Length property exist.
- Made Count() > 0 checks and variations calls to Any() instead.
- Don't call ToList/ToArray if there is no benefit to materializing the sequence.
- If the sequence does benefit from materialization, follow this general pattern:
- Collection queried often via Contains use ToHashSet to speed up lookups.
- Short lived variables use ToList. This is because ToArray requires an extra copy to output the final size.
- Collections persisted into fields or for a long time use ToArray to minimize memory overhead.
2015-01-29 19:20:11 +00:00
abcdefg30
8ca61aa917
Updated all year numbers
2015-01-09 21:18:05 +01:00
Matthias Mailänder
44cd174a8d
StyleCop clean OpenRA.Game
2015-01-03 19:00:48 +01:00
Alexander Fast
070d00c678
Fixes year numbers in license text in file headers.
2014-08-21 11:27:52 +02:00
ScottNZ
90894aa03e
Use var everywhere
2014-06-15 22:17:34 +12:00
ScottNZ
00ec1ca87a
Remove unused usings
2013-11-12 19:39:33 +13:00
ScottNZ
86a3e14f2d
Remove constructor base() redundancies
2013-11-12 17:31:55 +13:00
Chris Forbes
bc6af1841b
fix indents everywhere
2011-10-18 15:10:17 +13:00
Chris Forbes
55036cd58c
fix trailing whitespace everywhere
2011-09-26 08:40:39 +13:00
Paul Chote
926b396605
Fix bogus naming of Shaders/Renderers. Split LineRenderer into world and chrome variants.
2011-07-25 22:23:16 +12:00
Paul Chote
1114293035
Apply consistent widget method names. Semantic change: Widgets that want to tick when !Visible must override TickOuter() instead of Tick().
2011-07-14 20:29:02 +12:00
Chris Forbes
77686adc1a
remove batch spam from PerfGraphWidget
2011-05-22 22:05:49 +12:00
Chris Forbes
310ecc34ce
clean up usings everywhere
2011-05-21 17:26:18 +12:00
Paul Chote
d7f009b218
Use the font dictionary everywhere
2011-05-21 17:26:18 +12:00
Chris Forbes
a33cca57ec
fix a crash in perf graph
2011-03-13 02:27:32 +13:00
Paul Chote
094907c1a9
Update copyright header. Normalize line endings to LF.
2011-02-13 10:38:57 +13:00
Paul Chote
481cc7807b
Don't require a WorldRenderer to draw non-world-rendering widgets.
2011-01-19 20:41:32 +13:00
Chris Forbes
ae1710896a
add a tiny font; add labels in PerfGraphWidget
2010-12-28 17:24:20 +13:00
Chris Forbes
4a0b78c1e6
make all other engine widgets public, for Gecko
2010-11-07 17:16:51 +13:00
Bob
6ea2a06e4b
pass WorldRenderer to Widget.Draw, DrawInner
2010-10-12 17:27:08 +13:00
Bob
cb1deacbb2
pass world into CheckSync. don't pass world into Widget.DrawInner
2010-10-12 17:24:12 +13:00
Bob
14e517cab5
Autoflush renderer. Sprite.DrawAt convenience function.
2010-09-24 18:11:03 +12:00
alzeih
222b29cec6
Bye Bye Chrome!
2010-07-21 17:57:06 +12:00
Chris Forbes
d5f12dd8ee
trim down license spam in all files
2010-07-18 16:48:21 +12:00
Chris Forbes
fed33fdb00
remove plenty of redundant junk
2010-07-14 19:00:03 +12:00
Paul Chote
f70ac60135
Widget refactoring to support listboxes
2010-07-12 17:41:25 +12:00
Bob
8285c7d158
refactoring Widget
2010-05-29 18:01:36 +12:00
alzeih
429821f6c4
copy constructors
2010-04-24 20:14:33 +12:00
alzeih
471a5c29c8
refactored a bit - something is still failing
2010-04-24 19:48:15 +12:00
alzeih
3d1d6f5e00
more stuff working
2010-04-24 19:48:15 +12:00
Paul Chote
1646f202d5
Perf info in main menu
2010-04-11 15:41:43 +12:00
Paul Chote
559a0107fe
Perf debug as widgets
2010-04-11 13:49:37 +12:00