1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add mesh generation delay

This commit is contained in:
number Zero 2017-02-18 21:53:05 +03:00 committed by paramat
parent 22567d107f
commit 4d5177ff70
6 changed files with 22 additions and 2 deletions

View file

@ -120,13 +120,14 @@ class MeshUpdateThread : public UpdateThread
{
private:
MeshUpdateQueue m_queue_in;
int m_generation_interval;
protected:
virtual void doUpdate();
public:
MeshUpdateThread() : UpdateThread("Mesh") {}
MeshUpdateThread();
void enqueueUpdate(v3s16 p, MeshMakeData *data,
bool ack_block_to_server, bool urgent);