Files
OpenRA/OpenRA.Game
RoosterDragon 53f06ba093 Implement dynamic hardware palette sizing.
The HardwarePalette will now grow its palette buffer and texture in power-of-2 increments. This avoids it having to allocate memory for a full 256x256 texture up front. In practice the default mods use 22 or 23 palettes so a 32x256 texture is used. This means both the buffer and texture save neatly on memory. Additionally, HardwarePalette.ApplyModifiers sees a nice speedup as it has to transfer a much smaller amount of memory from the buffer to the texture.

To facilitate this change, the MaxPalettes constant is no more. Instead the PaletteReference deals with the calculation of the index and this is passed into the appropriate methods.
2015-01-07 22:41:51 +00:00
..
2015-01-01 22:51:12 +01:00
2015-01-01 22:51:12 +01:00
2015-01-06 21:28:50 +00:00
2015-01-06 21:28:50 +00:00
2015-01-06 21:28:50 +00:00
2015-01-01 22:51:12 +01:00
2015-01-04 15:38:54 +01:00
2015-01-06 21:28:50 +00:00
2015-01-03 19:00:48 +01:00
2015-01-04 15:38:54 +01:00
2015-01-06 21:28:50 +00:00
2015-01-06 21:28:50 +00:00
2015-01-06 21:28:50 +00:00
2015-01-06 21:28:50 +00:00
2015-01-06 21:28:50 +00:00
2015-01-04 15:38:54 +01:00
2015-01-02 12:11:01 +01:00
2015-01-03 19:00:48 +01:00
2015-01-06 21:28:50 +00:00
2015-01-06 21:28:50 +00:00
2015-01-04 15:38:54 +01:00
2015-01-01 22:51:12 +01:00
2015-01-01 22:51:12 +01:00
2015-01-01 22:51:12 +01:00
2015-01-06 21:28:50 +00:00
2015-01-01 22:51:12 +01:00
2015-01-06 21:28:50 +00:00
2015-01-03 19:00:48 +01:00
2015-01-06 21:28:50 +00:00
2015-01-02 12:11:01 +01:00
2015-01-03 19:00:48 +01:00
2015-01-01 22:51:12 +01:00
2015-01-03 19:00:48 +01:00
2015-01-03 19:00:48 +01:00
2015-01-06 21:28:50 +00:00
2015-01-02 12:11:01 +01:00
2015-01-06 21:28:50 +00:00
2015-01-06 21:28:50 +00:00
2015-01-02 12:11:01 +01:00