Conversation
|
Reduced the added json from 150k to 64k |
|
This now works fully seemingly, but the generation tasks for light takes anywhere from 4-70ms. So i will look into how starlight and other light optimization mods try to improve the performance. |
|
Wouldn't it be possible to SIMD iff the light doesn't cross a chunk border? I'm asking because the offsets are vectors |
|
Found some small optimizations. Light is now 100-200x faster, and is now in the microseconds for most chunks. Might be more to squeeze out. |
|
Nice, I heard they rewrote the whole light engine in the new snapshot, could you take a look at that? |
|
As we discussed on Discord this will have to wait until other parts of chunkgen are done first |
|
This pull request has conflicts with the base branch "master". Please resolve those so we can test out your changes. |
Adds block states that will be needed later. For now, we need it for the opacity.
Adds sky light initialization to the generation steps. Sets block light to 0, as it does not need to be 15 for fullbright.
No propagation yet, but we also don't save the chunks, so no need to do propagation, becasue the client handles that fine on it's own. Once we store chunks, we can impl the light spreading.