[ChunkMeshBuilder] Comment added.

This commit is contained in:
Quentin Bazin 2021-06-01 02:00:44 +02:00
parent 7b6ea921f8
commit 39bb2c949a

View File

@ -31,6 +31,14 @@
using namespace BlockGeometry; using namespace BlockGeometry;
// NOTE: TextureAtlas and Registry are accessed from different threads.
//
// This is not a problem currently since both shouldnt change during the execution,
// but if they do, a lot of problems will occur.
//
// Also, Registry is accessed from server too when running a singleplayer game,
// so if it changes during the execution, that would cause problems there too.
//
void ChunkMeshBuilder::addMeshBuildingJob(const Chunk &chunk, const TextureAtlas &textureAtlas) { void ChunkMeshBuilder::addMeshBuildingJob(const Chunk &chunk, const TextureAtlas &textureAtlas) {
// Creating the job (creates a copy of the chunk to send it to the thread) // Creating the job (creates a copy of the chunk to send it to the thread)
ChunkMeshBuildingJob job; ChunkMeshBuildingJob job;