fixing multithreading

This commit is contained in:
2025-06-04 19:22:28 +02:00
parent 17b577bfeb
commit 53b39913e5
5 changed files with 49 additions and 88 deletions

View File

@@ -10,7 +10,6 @@
#include <Chunk.h>
#include <Utils.h>
#include <FpsCounter.h>
#include <ThreadPool.h>
#include <NoiseCollection.h>
constexpr std::uint8_t RENDER_DISTANCE = 15;
@@ -53,7 +52,6 @@ class World
private:
NoiseCollection m_noisecollection;
FpsCounter m_fps_counter;
ThreadPool m_thread_pool;
std::unordered_map<Scop::Vec2i, Chunk> m_chunks;
ThreadSafeQueue<std::reference_wrapper<Chunk>> m_chunks_to_upload;
std::shared_ptr<Scop::Material> p_block_material;