summaryrefslogtreecommitdiffstats
path: root/src/RendererWorld.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/RendererWorld.hpp')
-rw-r--r--src/RendererWorld.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/RendererWorld.hpp b/src/RendererWorld.hpp
index fb10c88..d339706 100644
--- a/src/RendererWorld.hpp
+++ b/src/RendererWorld.hpp
@@ -15,8 +15,9 @@ class RendererWorld: public Renderer {
void LoadedSectionController();
bool isRunning = true;
//Blocks
+
std::mutex sectionsMutex;
- std::map<Vector, RendererSection> sections;
+ std::map<Vector, RendererSection> sections;
Shader *blockShader;
void RenderBlocks(RenderState& renderState);
//Entities
@@ -35,4 +36,7 @@ public:
double MaxRenderingDistance;
void Update();
+
+ std::mutex renderDataMutex;
+ std::queue<RendererSectionData> renderData;
}; \ No newline at end of file