Showing the changes to interface/src/Application.cpp (1 of 7 files). Show all
Unified · Split
| @@ -140,6 +140,7 @@ Application::Application(int& argc, char** argv, timeval &startup_time) : · 139 unmodified lines | ||
| 140 | 140 | #endif |
| 141 | 141 | _stopNetworkReceiveThread(false), |
| 142 | 142 | _voxelProcessor(), |
| 143 | + _voxelHideShowThread(&_voxels), | |
| 143 | 144 | _voxelEditSender(this), |
| 144 | 145 | _packetCount(0), |
| 145 | 146 | _packetsPerSecond(0), |
| @@ -329,6 +330,7 @@ void Application::initializeGL() { · 183 unmodified lines | ||
| 329 | 330 | // create thread for parsing of voxel data independent of the main network and rendering threads |
| 330 | 331 | _voxelProcessor.initialize(_enableProcessVoxelsThread); |
| 331 | 332 | _voxelEditSender.initialize(_enableProcessVoxelsThread); |
| 333 | + _voxelHideShowThread.initialize(_enableProcessVoxelsThread); | |
| 332 | 334 | if (_enableProcessVoxelsThread) { |
| 333 | 335 | qDebug("Voxel parsing thread created.\n"); |
| 334 | 336 | } |
| @@ -1401,6 +1403,7 @@ void Application::terminate() { · 1066 unmodified lines | ||
| 1401 | 1403 | } |
| 1402 | 1404 | |
| 1403 | 1405 | _voxelProcessor.terminate(); |
| 1406 | + _voxelHideShowThread.terminate(); | |
| 1404 | 1407 | _voxelEditSender.terminate(); |
| 1405 | 1408 | } |
| 1406 | 1409 | |
| @@ -2249,6 +2252,7 @@ void Application::updateThreads(float deltaTime) { · 842 unmodified lines | ||
| 2249 | 2252 | // parse voxel packets |
| 2250 | 2253 | if (!_enableProcessVoxelsThread) { |
| 2251 | 2254 | _voxelProcessor.threadRoutine(); |
| 2255 | + _voxelHideShowThread.threadRoutine(); | |
| 2252 | 2256 | _voxelEditSender.threadRoutine(); |
| 2253 | 2257 | } |
| 2254 | 2258 | } |