i wonder , can maxLights be non power of two, like 33 ?
and can maxLights be different for different Worlds ? some Worlds don't need many lights but some other do.
does it affect performance or memory usage much ? if it doesn't affect much , i would just set it to a large number.
Just set it to a large number. It doesn't really use much memory.