Hi Denis, On 10/8/2010 8:53 AM, Denis Lila wrote:
2. I changed how the alpha map is managed in PiscesTileGenerator to something that's a bit clearer and uses less memory (the latter comes from changing the +300 in the alpha tile allocation to +1. If there was a good reason for using 300, please tell me).
Did I do that? Wow. I wish I knew. There were probably some bugs in the alpha accumulation at some point. Since it was indexed by a byte, I find it hard to believe that it would need 300 entries of padding.
One thing - will we ever need more than one alpha map in practice? I don't believe we will since it depends on the maxalpha from the Renderer which is a fixed value. So, the hashmap cache is probably overkill compared to just seeing if the existing one is the right size, no?
...jim