Tag Info

New answers tagged

3

First, your concerns are definitely valid and this is not "premature optimization." The problem is, std::deque::insert invalidates all iterators and references, so deque is not actually useful for this. What I did to solve this problem is create a wrapper data structure around std::vector (I called it a perma_vector) that stores a vector of ...


1

I have also implemented a chunked engine. The best way to think of it is to just think of the chunks as memory storage locations rather than as actual structures of the world. Then, whenever you generate content, generate it as though you had a giant array of arbitrary size. Just implement some functions like Voxel* GetVoxelAt(int x, int y, int z); Which ...



Top 50 recent answers are included