You are browsing as a guest. Sign up (or log in) to start making projects!

3h 15m 5s logged

Devlog 14

Chunk with hashmaps and big refactor

I Had TONS of headaches with my current code. The mess was a lot more messy than i thought. I changed a lot of the old code and refactored the chunk rendering system. Now the chunks can be on negative coords, the world position unit is calculated in chunks.

I implemented a hashmap to calculate the chunks and implemented chunk unloading. It is not performatic (i may have to use greedy culling or even frustum culling). The dynamic chunk loading is not implemented yet but it is easy with this refactor

Also i think the code leaks memory because of the hashmap implmenentaiton. I will take a look on that later.

0
32

Comments 0

No comments yet. Be the first!