voxel-engine/src
EmaMaker 88abf21502 multithread: refactor update thread, communication between mesh/gen/upd threads
- 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)
2023-10-04 13:10:05 +02:00
..
CMakeLists.txt move input handling from main into dedicated file 2023-10-03 22:45:09 +02:00
OpenSimplexNoise.cpp initial commit 2022-11-10 19:53:52 +01:00
chunk.cpp chunk: typedef for chunk state 2023-10-04 12:57:57 +02:00
chunkgenerator.cpp generator: add comments + a bit of refactor 2023-07-30 12:17:48 +02:00
chunkmanager.cpp multithread: refactor update thread, communication between mesh/gen/upd threads 2023-10-04 13:10:05 +02:00
chunkmesher.cpp separate mesh and generation threads, with priority queues for input 2023-07-30 12:17:51 +02:00
controls.cpp move input handling from main into dedicated file 2023-10-03 22:45:09 +02:00
debugwindow.cpp debugwindow: catch exception to avoid crash when missing parameters 2023-10-04 12:58:00 +02:00
main.cpp move input handling from main into dedicated file 2023-10-03 22:45:09 +02:00
renderer.cpp multithread: refactor update thread, communication between mesh/gen/upd threads 2023-10-04 13:10:05 +02:00
spacefilling.cpp general code cleanup 2023-03-25 16:28:12 +01:00
stb_image.cpp initial commit 2022-11-10 19:53:52 +01:00
utils.cpp general code cleanup 2023-03-25 16:28:12 +01:00