SpoutDev/Spout — pull request #1914 by bergerkiller (2012-06-13 18:10:01+00:00)
Title: Moved light storage to chunks

Signed-off-by: Irmo van den Berge

To cut memory usage, it will now store all block lighting operations (sky/block) in the chunk, instead of using 6 Int21 hashmaps in the lighting models.

Benefits:
- Less memory usage in the long run
- Faster to schedule new updates (long key and hashcode generation was very slow)
- Faster to clear previous updates (<4K to clean up, a lot faster than millions)
- Less high buffers
- Per-chunk operating to prevent conflicts while chunks are generating