codewarrior0/pymclevel — Issue #69: MCInfdevOldLevel.generateLights is slow. Use some space to save some time.
Author: codewarrior0
Created: 2012-02-11 10:02:20+00:00
State: open

Instead of shuffling all of the light values six ways on each pass, use a list of active coordinates and propagate light only from the active locations, creating a new list of active coordinates after each pass. This was done before and turned out to be dog slow in python, but there is probably a way to do it using just numpy. Python code will be faster in pypy but building all of the extension modules for pypy might be a problem.