Files
OpenRA/OpenRA.Mods.RA/Widgets/Logic
RoosterDragon 7030d8b2b6 Changed HardwarePalette.ApplyModifiers to be more efficient.
- Add separate ImmutablePalette and MutablePalette classes since the distinction is extremely important to HardwarePalette.
- Keep a cache of palettes in HardwarePalette to avoid reallocation them every time ApplyModifiers is called.
- Palettes that are not allowed to be modified are copied to the buffer once when added, rather than every time ApplyModifiers is called.
- The AdjustPalette method now takes a read-only dictionary to prevent the dictionary being messed with.
- Added a constant for the palette size to remove its usage as a magic number in several areas.
- The ColorPreviewManagerWidget is annoying in that it needs to actually permanently update a palette after it has been added. To allow this, HardwarePalette now allows a palette to be replaced after initialization. The WorldRenderer therefore now also updates the PaletteReference it created earlier with the new palette to prevent stale data being used elsewhere.
2014-06-28 01:11:48 +01:00
..
2014-06-18 21:43:35 +01:00
2014-06-15 22:16:40 +12:00
2014-06-15 22:16:40 +12:00
2014-06-15 22:16:40 +12:00
2014-06-15 22:17:34 +12:00
2014-05-23 15:50:54 +01:00
2013-06-30 20:34:25 +12:00
2014-06-15 22:16:40 +12:00
2014-06-15 22:14:39 +12:00
2014-06-19 13:20:55 -04:00
2014-06-15 22:16:40 +12:00
2014-05-26 18:10:59 +01:00
2013-08-08 23:09:48 +02:00
2014-06-15 22:16:40 +12:00
2014-06-16 10:22:10 +02:00
2014-06-15 22:16:40 +12:00
2014-06-18 21:43:35 +01:00
2014-06-15 22:16:40 +12:00