Orchestrates infinite world generation, active chunk tracking, and multi-threaded data loading.
Definition ChunkManager.h:33
Manages a thread pool to compute 3D explicit thermal diffusion across voxel chunks.
Definition ThermalSystem.h:21
~ThermalSystem()
Definition ThermalSystem.cpp:29
std::unique_ptr< std::barrier<> > m_pPhase2Barrier
Definition ThermalSystem.h:48
void UpdateTemperature(float fDeltaTime, ChunkManager &objChunkManager)
Wakes worker threads to compute the next thermal integration step based on elapsed time.
Definition ThermalSystem.cpp:39
ChunkManager * m_pCurrChunkManager
Definition ThermalSystem.h:44
std::vector< std::thread > m_vecWorkerThreads
Definition ThermalSystem.h:50
std::atomic< bool > m_bIsRunning
Definition ThermalSystem.h:40
void workerThreadLoop(int iThreadID)
Main execution loop for each worker thread, regulated by barrier synchronization.
Definition ThermalSystem.cpp:47
void SetEnableSIMD(bool bEnable)
Definition ThermalSystem.h:31
int m_iNumThreads
Definition ThermalSystem.h:39
std::unique_ptr< std::barrier<> > m_pPhase1Barrier
Definition ThermalSystem.h:47
std::unique_ptr< std::barrier<> > m_pStartBarrier
Definition ThermalSystem.h:46
std::atomic< bool > m_bIsSIMDEnabled
Definition ThermalSystem.h:41
float m_fCurrDeltaTime
Definition ThermalSystem.h:43