88abf21502
- Use parallel_for to iterate over all the stored chunks - Only push a chunk to a queue if it is not already present, using chunk state bitfield (solves memory leak, continously adding new elements to a queue) - Properly delete an element from chunks concurrent_hash_map using accessor, then free the memory (solves memory leak: not being able to delete old elements and always adding new ones) Breaks: - Rendering (will be properly refactored in a future commit) - Block picking (will be refactored in a future commit) |
||
---|---|---|
include | ||
lib | ||
shaders | ||
src | ||
textures | ||
.gitignore | ||
.gitmodules | ||
CMakeLists.txt | ||
README.md | ||
build-and-run.sh | ||
intervalmap.hpp |
README.md
Port of https://git.emamaker/voxel-test-intervalmaps to C++ and OpenGL.
Credits
CMake template based on https://github.com/kigster/cmake-project-template by Konstantin Gredeskoul under MIT License
Rest of credits is in respective source files (OpenSimplexNoise, glad, glm, stb_image)