#include <mesh_generator_thread.h>
◆ UpdateMode
Enumerator |
---|
FORCE_UPDATE | |
SKIP_UPDATE_IF_ALREADY_CACHED | |
◆ MeshUpdateQueue()
MeshUpdateQueue::MeshUpdateQueue |
( |
Client * |
client | ) |
|
◆ ~MeshUpdateQueue()
MeshUpdateQueue::~MeshUpdateQueue |
( |
| ) |
|
◆ addBlock()
void MeshUpdateQueue::addBlock |
( |
Map * |
map, |
|
|
v3s16 |
p, |
|
|
bool |
ack_block_to_server, |
|
|
bool |
urgent |
|
) |
| |
References QueuedMeshUpdate::ack_block_to_server, Profiler::avg(), cacheBlock(), cleanupCache(), QueuedMeshUpdate::crack_level, QueuedMeshUpdate::crack_pos, FORCE_UPDATE, g_profiler, Client::getCrackLevel(), Client::getCrackPos(), m_client, m_mutex, m_queue, m_urgents, QueuedMeshUpdate::p, p(), and SKIP_UPDATE_IF_ALREADY_CACHED.
Referenced by MeshUpdateThread::updateBlock().
◆ cacheBlock()
◆ cleanupCache()
void MeshUpdateQueue::cleanupCache |
( |
| ) |
|
|
private |
◆ fillDataFromMapBlockCache()
References QueuedMeshUpdate::crack_level, QueuedMeshUpdate::crack_pos, CachedMapBlockData::data, QueuedMeshUpdate::data, MeshMakeData::fillBlockData(), MeshMakeData::fillBlockDataBegin(), getCachedBlock(), CachedMapBlockData::last_used_timestamp, m_cache_enable_shaders, m_cache_smooth_lighting, m_client, QueuedMeshUpdate::p, p(), CachedMapBlockData::refcount_from_queue, MeshMakeData::setCrack(), and MeshMakeData::setSmoothLighting().
Referenced by pop().
◆ getCachedBlock()
◆ pop()
◆ size()
u32 MeshUpdateQueue::size |
( |
| ) |
|
|
inline |
◆ m_cache
◆ m_cache_enable_shaders
bool MeshUpdateQueue::m_cache_enable_shaders |
|
private |
◆ m_cache_smooth_lighting
bool MeshUpdateQueue::m_cache_smooth_lighting |
|
private |
◆ m_client
Client* MeshUpdateQueue::m_client |
|
private |
◆ m_meshgen_block_cache_size
int MeshUpdateQueue::m_meshgen_block_cache_size |
|
private |
◆ m_mutex
std::mutex MeshUpdateQueue::m_mutex |
|
private |
◆ m_queue
◆ m_urgents
std::set<v3s16> MeshUpdateQueue::m_urgents |
|
private |
The documentation for this class was generated from the following files: