#include <mesh_generator_thread.h>
◆ MeshUpdateQueue()
| MeshUpdateQueue::MeshUpdateQueue |
( |
Client * | client | ) |
|
◆ ~MeshUpdateQueue()
| MeshUpdateQueue::~MeshUpdateQueue |
( |
| ) |
|
◆ addBlock()
| bool MeshUpdateQueue::addBlock |
( |
Map * | map, |
|
|
v3s16 | p, |
|
|
bool | urgent, |
|
|
bool | from_neighbor ) |
Caches the block at p and its neighbors (if needed) and queues a mesh update for the block p.
- Parameters
-
| map | Map |
| p | block position |
| urgent | High-priority? |
| from_neighbor | was this update only necessary due to a neighbor change? |
References QueuedMeshUpdate::QueuedMeshUpdate(), Profiler::add(), MeshGrid::cell_size, g_profiler, Map::getBlockNoCreateNoEx(), Client::getCrackLevel(), Client::getCrackPos(), Client::getMeshGrid(), MeshGrid::getMeshPos(), m_client, m_mutex, m_queue, and m_urgents.
Referenced by MeshUpdateManager::forceRegenerate(), and MeshUpdateManager::updateBlock().
◆ clear()
| void MeshUpdateQueue::clear |
( |
| ) |
|
◆ done()
| void MeshUpdateQueue::done |
( |
v3s16 | pos | ) |
|
◆ fillDataFromMapBlocks()
References MeshMakeData::MeshMakeData(), StaticLighting::ao_gamma, QueuedMeshUpdate::crack_level, QueuedMeshUpdate::crack_pos, QueuedMeshUpdate::data, MeshMakeData::fillBlockDataBegin(), Client::getCommittedStaticLighting(), Client::getMeshGrid(), Client::getMinimap(), MeshMakeData::m_ao_gamma_inv, m_cache_enable_water_reflections, m_cache_enable_waving_water, m_cache_smooth_lighting, m_client, MeshMakeData::m_enable_water_reflections, MeshMakeData::m_enable_waving_water, MeshMakeData::m_generate_minimap, MeshMakeData::m_smooth_lighting, MeshMakeData::m_vmanip, QueuedMeshUpdate::map_blocks, MAP_BLOCKSIZE, IGameDef::ndef(), QueuedMeshUpdate::p, and MeshMakeData::setCrack().
Referenced by pop().
◆ pop()
◆ reAddBlock()
Re-queues a block that was already finished.
References QueuedMeshUpdate::QueuedMeshUpdate(), MeshUpdateResult::dropBlocks(), Client::getCrackLevel(), Client::getCrackPos(), Client::getMeshGrid(), MeshGrid::getMeshPos(), m_client, m_mutex, m_queue, m_urgents, MeshUpdateResult::map_blocks, MeshUpdateResult::p, and MeshUpdateResult::urgent.
Referenced by MeshUpdateManager::getNextResult().
◆ setEpoch()
| void MeshUpdateQueue::setEpoch |
( |
u16 | epoch | ) |
|
|
inline |
◆ size()
| size_t MeshUpdateQueue::size |
( |
| ) |
|
|
inline |
◆ m_cache_enable_water_reflections
| bool MeshUpdateQueue::m_cache_enable_water_reflections |
|
private |
◆ m_cache_enable_waving_water
| bool MeshUpdateQueue::m_cache_enable_waving_water |
|
private |
◆ m_cache_smooth_lighting
| bool MeshUpdateQueue::m_cache_smooth_lighting |
|
private |
◆ m_client
| Client* MeshUpdateQueue::m_client |
|
private |
◆ m_epoch
| u16 MeshUpdateQueue::m_epoch = 0 |
|
private |
◆ m_inflight_blocks
| std::unordered_set<v3s16> MeshUpdateQueue::m_inflight_blocks |
|
private |
◆ m_mutex
| std::mutex MeshUpdateQueue::m_mutex |
|
private |
◆ m_queue
◆ m_urgents
| std::unordered_set<v3s16> MeshUpdateQueue::m_urgents |
|
private |
The documentation for this class was generated from the following files: