This patch simply raises the hard-coded limit for simultaneously rendered particles from 4000 to 256,000 per texture layer.