egordorichev / LastTry

:deciduous_tree: LastTry is open-source game written in Java, using LibGDX library and inspired by Terraria :deciduous_tree:
MIT License
118 stars 17 forks source link

Setting up the initial lightmap doesn't unload chunks after completion #84

Closed Col-E closed 7 years ago

Col-E commented 7 years ago

The idea is to pre-bake lighting initially so runtime updates will be small. So loading the chunks should happen. What should happen next is a step that unloads all chunks after setting up the world's light. Then when the player spawns in everything will behave as intended.

egordorichev commented 7 years ago

This system is not so optimized. You can do the same thing, but for chunk, and not the whole world. Also, current light system counts only neighbors, and the light level doesn't look deep.

Col-E commented 7 years ago

Yeah the entire system is a heavy WIP.

Col-E commented 7 years ago

The system no longer has a pre-bake design. This is irrelevant now.